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

Serialize full playlog schema.

parent 13a58822
No related branches found
No related tags found
No related merge requests found
Pipeline #768 passed
......@@ -47,7 +47,7 @@ class PlayLog(db.Model):
track_type = Column(Integer)
timeslot_id = Column(Integer)
show_name = Column(String(256))
log_source = Column(Integer) # The play-out source this log is coming from (e.g. engine1, engine2)
log_source = Column(Integer) # The play-out source which this log is coming from (e.g. engine1, engine2)
is_synced = Column(Boolean) # Only relevant for main nodes, in a multi-node setup
......
......@@ -130,7 +130,7 @@ class ApiService():
(JSON)
"""
tracklist = PlayLog.paginate(page, size, from_time, to_time, skip_synced)
tracklist_schema = TrackSchema(many=True)
tracklist_schema = PlayLogSchema(many=True)
return tracklist_schema.dump(tracklist)
......
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