Optimize default drawer scripts

This commit is contained in:
Evgeny
2023-07-19 14:00:35 +04:00
parent 43328239c9
commit d098a0f84d
3 changed files with 34 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ function on_drawer_open()
have_permission = true
if #events == #drawer:items() then
return
end
lines = map(events, function(it)
local date = fmt.colored(os.date("%d.%m", it.begin), it.color)
return date..fmt.space(4)..it.title