diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-20 12:58:20 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-20 16:18:06 (GMT) |
commit | 0386ab3ed2ea15385adab932c93f87f28464de1e (patch) | |
tree | a5c004d40ae16a83a293e6f6d3d5afd5a248b0a2 /program | |
parent | 7becbd5338dd1716ea314f77c977e0a9b22a758e (diff) |
Hotfix: add end time to json day schedule, also include date in start/end
Diffstat (limited to 'program')
-rw-r--r-- | program/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/views.py b/program/views.py index 5218ce7..09e08b0 100644 --- a/program/views.py +++ b/program/views.py @@ -198,7 +198,7 @@ def json_day_schedule(request, year=None, month=None, day=None): timeslots = TimeSlot.objects.get_24h_timeslots(today) schedule = [] for ts in timeslots: - entry = { 'start': ts.start.strftime('%H:%M:%S'), 'title': ts.programslot.show.name, 'id': ts.programslot.show.id, 'automation-id': -1 } + entry = { 'start': ts.start.strftime('%Y-%m-%d_%H:%M:%S'), 'end': ts.end.strftime('%Y-%m-%d_%H:%M:%S'), 'title': ts.programslot.show.name, 'id': ts.programslot.show.id, 'automation-id': -1 } if ts.programslot.automation_id: entry['automation-id'] = ts.programslot.automation_id elif ts.programslot.show.automation_id: |