diff --git a/src/models.py b/src/models.py index 2aba803b156c5997cf9f045babf1e08f16d29a63..1706164660f4c43ac3e78dbcf1874d45259c3bdb 100644 --- a/src/models.py +++ b/src/models.py @@ -492,6 +492,9 @@ class ClockInfo(db.Model): # Get the next timeslot if data.next_timeslot: info["next_timeslot"] = json.loads(data.next_timeslot) + else: + info["next_timeslot"] = {} + return info