Commit 899db3b9 authored by David Trattnig's avatar David Trattnig
Browse files

Default fallback state for schedule.

parent 7a5b96c7
......@@ -33,7 +33,7 @@ from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
from modules.base.enum import Channel, ChannelType
from modules.base.enum import Channel, ChannelType, PlaylistType
from modules.base.config import AuraConfig
from modules.base.utils import SimpleUtil, EngineUtil
......@@ -150,6 +150,7 @@ class Schedule(DB.Model, AuraDatabaseModel):
schedule_fallback_id = Column(Integer)
show_fallback_id = Column(Integer)
station_fallback_id = Column(Integer)
fallback_state = PlaylistType.DEFAULT
playlist = relationship("Playlist",
primaryjoin="and_(Schedule.schedule_start==Playlist.schedule_start, Schedule.playlist_id==Playlist.playlist_id, Schedule.show_name==Playlist.show_name)",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment