diff --git a/src/models.py b/src/models.py index 1706164660f4c43ac3e78dbcf1874d45259c3bdb..fb9e737476e2b4abc36860321f01dd706c863255 100644 --- a/src/models.py +++ b/src/models.py @@ -483,6 +483,8 @@ class ClockInfo(db.Model): playlogs = PlayLog.select_for_timeslot(most_recent_track.timeslot_id) playlogs.sort(key=lambda track: track.track_start, reverse=False) info["current_playlogs"] = playlog_schema.dump(playlogs) + if info["current_playlogs"] == None: + info["current_playlogs"] = {} # Invalid timeslots (e.g. in fallback scenarios) get a virtual start date of the first fallback track if info["current_timeslot"]["timeslot_id"] == -1: