mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2025-05-09 06:34:06 +00:00
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:
parent
e198f6351f
commit
0ff25fb301
3 changed files with 2 additions and 13 deletions
2
service
2
service
|
@ -151,6 +151,7 @@ def main():
|
|||
"color": color,
|
||||
}
|
||||
)
|
||||
schedule["talks"] = sorted(schedule["talks"], key=lambda t: t["start_ts"])
|
||||
node.write_json("schedule.json", schedule)
|
||||
log("updated schedule json")
|
||||
elif config["json_flavour"] == "voc-schema":
|
||||
|
@ -236,6 +237,7 @@ def main():
|
|||
talk["persons"] = persons
|
||||
|
||||
schedule["talks"].append(talk)
|
||||
schedule["talks"] = sorted(schedule["talks"], key=lambda t: t["start_ts"])
|
||||
node.write_json("schedule.json", schedule)
|
||||
log("updated schedule json")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue