25 lines
546 B
Lua
25 lines
546 B
Lua
local autoload = require("lapis.util").autoload
|
|
local config = require("lapis.config").get()
|
|
|
|
local utils = require("drmr.utils")
|
|
|
|
local drmr = autoload("drmr")
|
|
|
|
local function Roothandler(self)
|
|
|
|
|
|
local function compare( a, b )
|
|
if a.stop == "current" or b.stop == "current" then
|
|
return b.start < a.start
|
|
end
|
|
return a.stop > b.stop
|
|
end
|
|
-- table.sort(unsort_career.career, compare)
|
|
|
|
self.promo = utils:opendata(config.mount .. "promo.json")
|
|
|
|
return { render = "root"}
|
|
end
|
|
|
|
return Roothandler
|