Skip to content

Commit 37d1020

Browse files
committed
chore: typing fixes, version bump to 6.0.8
1 parent db488e6 commit 37d1020

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

backend/api/browse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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=[

backend/api/playout/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ class PlayoutPluginManifest(ResponseModel):
5959

6060
class 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: [])

backend/api/rundown/get_rundown.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

backend/api/scheduler/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

backend/nebula/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "6.0.7"
1+
__version__ = "6.0.8"

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nebula"
3-
version = "6.0.7"
3+
version = "6.0.8"
44
description = "Open source broadcast automation system"
55
authors = ["Nebula Broadcast <[email protected]>"]
66

0 commit comments

Comments
 (0)