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

fix: return null instead of ""

Closes #152
parent c106da54
No related branches found
No related tags found
No related merge requests found
Pipeline #3456 passed
......@@ -106,7 +106,7 @@ def timeslot_entry(*, timeslot: TimeSlot) -> dict:
"id": timeslot.id,
"playlistId": playlist_id,
# `Timeslot.repetition_of` is a foreign key that can be null
"repetitionOfId": timeslot.repetition_of.id if timeslot.repetition_of else "",
"repetitionOfId": timeslot.repetition_of.id if timeslot.repetition_of else None,
"scheduleDefaultPlaylistId": schedule.default_playlist_id,
"scheduleId": schedule.id,
"showCategories": ", ".join(show.category.values_list("name", flat=True)),
......
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