File tree Expand file tree Collapse file tree 6 files changed +6
-12
lines changed
Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class BrowseRequestModel(RequestModel):
5757 examples = ["star trek" ],
5858 )
5959 conditions : list [ConditionModel ] | None = Field (
60- default_factory = list ,
60+ default_factory = lambda : [] ,
6161 title = "Conditions" ,
6262 description = "List of additional conditions" ,
6363 examples = [
Original file line number Diff line number Diff line change @@ -59,4 +59,4 @@ class PlayoutPluginManifest(ResponseModel):
5959
6060class PlayoutResponseModel (ResponseModel ):
6161 # TODO: use strict model from the worker
62- plugins : list [PlayoutPluginManifest ] | None = Field (default_factory = list )
62+ plugins : list [PlayoutPluginManifest ] | None = Field (default_factory = lambda : [] )
Original file line number Diff line number Diff line change @@ -154,13 +154,7 @@ async def get_rundown(request: RundownRequestModel) -> RundownResponseModel:
154154 # media is on the playout storage but corrupted
155155 istatus = ObjectStatus .CORRUPTED
156156 elif ameta [pskey ]["status" ] == ObjectStatus .ONLINE :
157- if airstatus is not None :
158- # media is on the playout storage and aired
159- istatus = airstatus
160- last_air = as_start
161- else :
162- # media is on the playout storage but not aired
163- istatus = ObjectStatus .ONLINE
157+ istatus = airstatus if airstatus is not None else ObjectStatus .ONLINE
164158 else :
165159 istatus = ObjectStatus .UNKNOWN
166160
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class EventData(RequestModel):
2828 examples = [123 ],
2929 )
3030
31- items : list [dict [str , Serializable ]] | None = Field (default_factory = list )
31+ items : list [dict [str , Serializable ]] | None = Field (default_factory = lambda : [] )
3232
3333 meta : dict [str , Serializable ] | None = Field (
3434 default = None ,
Original file line number Diff line number Diff line change 1- __version__ = "6.0.7 "
1+ __version__ = "6.0.8 "
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " nebula"
3- version = " 6.0.7 "
3+ version = " 6.0.8 "
44description = " Open source broadcast automation system"
55authors = [
" Nebula Broadcast <[email protected] >" ]
66
You can’t perform that action at this time.
0 commit comments