mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2025-05-09 06:34:06 +00:00
standalone: show track names at bottom
This commit is contained in:
parent
6541352392
commit
c4b55db10d
2 changed files with 28 additions and 4 deletions
6
service
6
service
|
@ -98,6 +98,7 @@ def main():
|
|||
# we need.
|
||||
else:
|
||||
schedule = r.json()
|
||||
schedule["tracks"] = []
|
||||
for talk in schedule["talks"]:
|
||||
talk["start_str"] = (
|
||||
datetime.fromtimestamp(talk["start_ts"])
|
||||
|
@ -115,7 +116,10 @@ def main():
|
|||
log("getting schedule.json failed: {}".format(repr(e)))
|
||||
else:
|
||||
raw_schedule = r.json()["schedule"]
|
||||
schedule = {"talks": []}
|
||||
schedule = {
|
||||
"tracks": raw_schedule["conference"]["tracks"],
|
||||
"talks": [],
|
||||
}
|
||||
|
||||
event_start = datetime.strptime(
|
||||
raw_schedule["conference"]["start"][:10], "%Y-%m-%d"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue