From 23958212df1f6ed137a5ef693e0aaefe1800a5cf Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Wed, 25 Nov 2020 15:14:07 +0100 Subject: [PATCH] Next timeslot init. engine-clock#11 --- src/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/models.py b/src/models.py index 2aba803..1706164 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 -- GitLab