Skip to content
Snippets Groups Projects
Commit d76ae945 authored by David Trattnig's avatar David Trattnig
Browse files

Fix clock item reset.

parent 3f6c257b
No related branches found
No related tags found
No related merge requests found
Pipeline #820 passed
......@@ -362,10 +362,16 @@ class ClockInfo(db.Model):
self.log_source = source_number
if current_playlist:
self.current_playlist = json.dumps(current_playlist.to_dict(), default=str)
else:
self.current_playlist = None
if current_schedule:
self.current_schedule = json.dumps(current_schedule.to_dict(), default=str)
else:
self.current_schedule = None
if next_schedule:
self.next_schedule = json.dumps(next_schedule.to_dict(), default=str)
else:
self.next_schedule = None
@staticmethod
......
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