Skip to content
Snippets Groups Projects
Verified Commit f98a8eca authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Timeslot includes the id of a repetition or false

parent ec5f5a76
No related branches found
No related tags found
No related merge requests found
Pipeline #3028 passed
......@@ -100,7 +100,8 @@ def timeslot_entry(*, timeslot: TimeSlot) -> dict:
"end": timeslot.end.strftime("%Y-%m-%dT%H:%M:%S"),
"title": title,
"schedule_id": schedule.id,
"is_repetition": timeslot.is_repetition,
# `Timeslot.repetition_of` is a foreign key that can be null
"is_repetition": timeslot.repetition_of.id if timeslot.repetition_of else False,
"playlist_id": playlist_id,
"schedule_default_playlist_id": schedule.default_playlist_id,
"show_default_playlist_id": show.default_playlist_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment