Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine
Commits
776d38a9
Commit
776d38a9
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
refact: remove fallback playlists from model
#100
parent
7b094297
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/aura_engine/scheduling/models.py
+0
-43
0 additions, 43 deletions
src/aura_engine/scheduling/models.py
with
0 additions
and
43 deletions
src/aura_engine/scheduling/models.py
+
0
−
43
View file @
776d38a9
...
@@ -176,13 +176,6 @@ class Timeslot(DB.Model, AuraDatabaseModel):
...
@@ -176,13 +176,6 @@ class Timeslot(DB.Model, AuraDatabaseModel):
is assigned
is assigned
show_default (Playlist): Some playlist played by default, when no default schedule
show_default (Playlist): Some playlist played by default, when no default schedule
playlist is assigned
playlist is assigned
schedule_fallback (Playlist): Some playlist played as fallback, when no specific playlist
is assigned or if it is erroneous (includes silence detection)
show_fallback (Playlist): Some playlist played as fallback, when no schedule fallback
playlist is assigned or if some specific playlist is erroneous
(includes silence detection)
station_fallback (Playlist): Defined in the original AURA API but not implemented, as
station fallbacks are handled locally
"""
"""
...
@@ -222,43 +215,10 @@ class Timeslot(DB.Model, AuraDatabaseModel):
...
@@ -222,43 +215,10 @@ class Timeslot(DB.Model, AuraDatabaseModel):
uselist
=
False
,
uselist
=
False
,
back_populates
=
"
timeslot
"
,
back_populates
=
"
timeslot
"
,
)
)
schedule_fallback
=
relationship
(
"
Playlist
"
,
primaryjoin
=
(
"
and_(Timeslot.timeslot_start==Playlist.timeslot_start,
"
"
Timeslot.schedule_fallback_id==Playlist.playlist_id,
"
"
Timeslot.show_name==Playlist.show_name)
"
),
uselist
=
False
,
back_populates
=
"
timeslot
"
,
)
show_fallback
=
relationship
(
"
Playlist
"
,
primaryjoin
=
(
"
and_(Timeslot.timeslot_start==Playlist.timeslot_start,
"
"
Timeslot.show_fallback_id==Playlist.playlist_id,
"
"
Timeslot.show_name==Playlist.show_name)
"
),
uselist
=
False
,
back_populates
=
"
timeslot
"
,
)
station_fallback
=
relationship
(
"
Playlist
"
,
primaryjoin
=
(
"
and_(Timeslot.timeslot_start==Playlist.timeslot_start,
"
"
Timeslot.station_fallback_id==Playlist.playlist_id,
"
"
Timeslot.show_name==Playlist.show_name)
"
),
uselist
=
False
,
back_populates
=
"
timeslot
"
,
)
playlist_id
=
Column
(
Integer
)
playlist_id
=
Column
(
Integer
)
default_schedule_playlist_id
=
Column
(
Integer
)
default_schedule_playlist_id
=
Column
(
Integer
)
default_show_playlist_id
=
Column
(
Integer
)
default_show_playlist_id
=
Column
(
Integer
)
schedule_fallback_id
=
Column
(
Integer
)
show_fallback_id
=
Column
(
Integer
)
station_fallback_id
=
Column
(
Integer
)
# Data
# Data
timeslot_start
=
Column
(
DateTime
,
unique
=
True
,
index
=
True
)
timeslot_start
=
Column
(
DateTime
,
unique
=
True
,
index
=
True
)
...
@@ -337,9 +297,6 @@ class Timeslot(DB.Model, AuraDatabaseModel):
...
@@ -337,9 +297,6 @@ class Timeslot(DB.Model, AuraDatabaseModel):
"
playlist_id
"
:
self
.
playlist_id
,
"
playlist_id
"
:
self
.
playlist_id
,
"
schedule_default_id
"
:
self
.
schedule_default_id
,
"
schedule_default_id
"
:
self
.
schedule_default_id
,
"
show_default_id
"
:
self
.
show_default_id
,
"
show_default_id
"
:
self
.
show_default_id
,
"
schedule_fallback_id
"
:
self
.
schedule_fallback_id
,
"
show_fallback_id
"
:
self
.
show_fallback_id
,
"
station_fallback_id
"
:
self
.
station_fallback_id
,
"
show
"
:
{
"
name
"
:
self
.
show_name
,
"
host
"
:
self
.
show_hosts
},
"
show
"
:
{
"
name
"
:
self
.
show_name
,
"
host
"
:
self
.
show_hosts
},
"
playlist
"
:
playlist
,
"
playlist
"
:
playlist
,
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment