sort talks in python, only sort by time

this assumes the room order in the schedule.json is the correct order
This commit is contained in:
Franzi 2024-12-26 10:54:56 +01:00
parent e198f6351f
commit 0ff25fb301
3 changed files with 2 additions and 13 deletions

View file

@ -151,13 +151,6 @@ local function check_next_talks()
end
end
local function sort_talks(a, b)
return a.start_ts < b.start_ts or (a.start_ts == b.start_ts and a.room < b.room)
end
table.sort(room_next_talks, sort_talks)
table.sort(all_next_talks, sort_talks)
log(tostring(#all_next_talks) .. " talks to come")
log(tostring(#room_next_talks) .. " in this room")
end