Skip to content
Snippets Groups Projects
Commit 0386ab3e authored by Christian Pointner's avatar Christian Pointner
Browse files

Hotfix: add end time to json day schedule, also include date in start/end

parent 7becbd53
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ def json_day_schedule(request, year=None, month=None, day=None): ...@@ -198,7 +198,7 @@ def json_day_schedule(request, year=None, month=None, day=None):
timeslots = TimeSlot.objects.get_24h_timeslots(today) timeslots = TimeSlot.objects.get_24h_timeslots(today)
schedule = [] schedule = []
for ts in timeslots: 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: if ts.programslot.automation_id:
entry['automation-id'] = ts.programslot.automation_id entry['automation-id'] = ts.programslot.automation_id
elif ts.programslot.show.automation_id: elif ts.programslot.show.automation_id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment