mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-25 11:31:04 +00:00
hide long-ago started talks from static view as well
This commit is contained in:
parent
fb1c6c0dc6
commit
45de0d6f29
1 changed files with 3 additions and 1 deletions
4
node.lua
4
node.lua
|
@ -73,12 +73,14 @@ local function check_next_talks()
|
||||||
|
|
||||||
all_next_talks = {}
|
all_next_talks = {}
|
||||||
|
|
||||||
|
local min_start = time - 25 * 60
|
||||||
|
|
||||||
for idx = 1, #schedule do
|
for idx = 1, #schedule do
|
||||||
local talk = schedule[idx]
|
local talk = schedule[idx]
|
||||||
|
|
||||||
-- Ignore all talks that have already ended here. We don't want
|
-- Ignore all talks that have already ended here. We don't want
|
||||||
-- to announce these.
|
-- to announce these.
|
||||||
if talk.end_ts > time then
|
if talk.end_ts > time and talk.start_ts > min_start then
|
||||||
all_next_talks[#all_next_talks+1] = talk
|
all_next_talks[#all_next_talks+1] = talk
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue