mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-24 11:01:05 +00:00
don't announce talks that have started more than 25 minutes ago
This commit is contained in:
parent
ef96cfb88c
commit
fb1c6c0dc6
2 changed files with 2 additions and 4 deletions
2
node.lua
2
node.lua
|
@ -73,8 +73,6 @@ 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]
|
||||||
|
|
||||||
|
|
4
tile.lua
4
tile.lua
|
@ -122,9 +122,9 @@ local function check_next_talks()
|
||||||
|
|
||||||
-- 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
|
||||||
-- is this in *this* room, or somewhere else?
|
-- is this in *this* room, or somewhere else?
|
||||||
if current_room and talk.room == current_room and talk.start_ts > min_start then
|
if current_room and talk.room == current_room then
|
||||||
room_next_talks[#room_next_talks+1] = talk
|
room_next_talks[#room_next_talks+1] = talk
|
||||||
end
|
end
|
||||||
all_next_talks[#all_next_talks+1] = talk
|
all_next_talks[#all_next_talks+1] = talk
|
||||||
|
|
Loading…
Reference in a new issue