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

Update docs. engine-clock#11

parent 5ebf83fc
No related branches found
No related tags found
No related merge requests found
...@@ -403,8 +403,8 @@ class ClockInfo(db.Model): ...@@ -403,8 +403,8 @@ class ClockInfo(db.Model):
log_time = Column(DateTime) log_time = Column(DateTime)
current_track = None # Populated live from within `get_info(..)` current_track = None # Populated live from within `get_info(..)`
planned_playlist = Column(String(4096)) # Stringified "#/components/schemas/Playlist" OpenAPI JSON object planned_playlist = Column(String(4096)) # Stringified "#/components/schemas/Playlist" OpenAPI JSON object
current_timeslot = Column(String(2048)) # Stringified "#/components/schemas/Schedule" OpenAPI JSON object current_timeslot = Column(String(2048)) # Stringified "#/components/schemas/Timeslot" OpenAPI JSON object
next_timeslot = Column(String(2048)) # Stringified "#/components/schemas/Schedule" OpenAPI JSON object next_timeslot = Column(String(2048)) # Stringified "#/components/schemas/Timeslot" OpenAPI JSON object
def __init__(self): def __init__(self):
...@@ -462,7 +462,7 @@ class ClockInfo(db.Model): ...@@ -462,7 +462,7 @@ class ClockInfo(db.Model):
if current_track: if current_track:
info["current_track"] = track_schema.dump(current_track) info["current_track"] = track_schema.dump(current_track)
# Append the missing planned playlist items to the ones played # FIXME do it client-site # Append the missing planned playlist items to the ones played
if data.planned_playlist: if data.planned_playlist:
info["planned_playlist"] = json.loads(data.planned_playlist) info["planned_playlist"] = json.loads(data.planned_playlist)
else: else:
......
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