Skip to content

Commit

Permalink
chore: typing fixes, version bump to 6.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Nov 24, 2024
1 parent db488e6 commit 37d1020
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion backend/api/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class BrowseRequestModel(RequestModel):
examples=["star trek"],
)
conditions: list[ConditionModel] | None = Field(
default_factory=list,
default_factory=lambda: [],
title="Conditions",
description="List of additional conditions",
examples=[
Expand Down
2 changes: 1 addition & 1 deletion backend/api/playout/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ class PlayoutPluginManifest(ResponseModel):

class PlayoutResponseModel(ResponseModel):
# TODO: use strict model from the worker
plugins: list[PlayoutPluginManifest] | None = Field(default_factory=list)
plugins: list[PlayoutPluginManifest] | None = Field(default_factory=lambda: [])
8 changes: 1 addition & 7 deletions backend/api/rundown/get_rundown.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,7 @@ async def get_rundown(request: RundownRequestModel) -> RundownResponseModel:
# media is on the playout storage but corrupted
istatus = ObjectStatus.CORRUPTED
elif ameta[pskey]["status"] == ObjectStatus.ONLINE:
if airstatus is not None:
# media is on the playout storage and aired
istatus = airstatus
last_air = as_start
else:
# media is on the playout storage but not aired
istatus = ObjectStatus.ONLINE
istatus = airstatus if airstatus is not None else ObjectStatus.ONLINE
else:
istatus = ObjectStatus.UNKNOWN

Expand Down
2 changes: 1 addition & 1 deletion backend/api/scheduler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class EventData(RequestModel):
examples=[123],
)

items: list[dict[str, Serializable]] | None = Field(default_factory=list)
items: list[dict[str, Serializable]] | None = Field(default_factory=lambda: [])

meta: dict[str, Serializable] | None = Field(
default=None,
Expand Down
2 changes: 1 addition & 1 deletion backend/nebula/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.0.7"
__version__ = "6.0.8"
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nebula"
version = "6.0.7"
version = "6.0.8"
description = "Open source broadcast automation system"
authors = ["Nebula Broadcast <[email protected]>"]

Expand Down

0 comments on commit 37d1020

Please sign in to comment.