Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions server/controllers/api/show/microphones.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,11 @@ async def post(self):
]
# Sort by scene position (chronological order)
character_scenes.sort(
key=lambda x: scene_metadata[x[0]].position
if x[0] in scene_metadata
else 0
key=lambda x: (
scene_metadata[x[0]].position
if x[0] in scene_metadata
else 0
)
)

# Assign mic for each scene
Expand Down
2 changes: 1 addition & 1 deletion server/schemas/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class Meta:
include_fk = True

line_parts = Nested(
lambda: ScriptLinePartSchema(),
lambda: ScriptLinePartSchema(), # noqa: PLW0108 — forward reference required
many=True,
)

Expand Down
2 changes: 1 addition & 1 deletion server/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest<9.1
pytest-asyncio>=1.3.0
ruff==0.14.14
ruff==0.15.0
4 changes: 2 additions & 2 deletions server/utils/version_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ def _is_newer_version(self, latest: str, current: str) -> bool:
"""
try:
# Strip pre-release suffixes (everything after -)
latest_clean = latest.split("-")[0]
current_clean = current.split("-")[0]
latest_clean = latest.split("-", maxsplit=1)[0]
current_clean = current.split("-", maxsplit=1)[0]

latest_parts = [int(x) for x in latest_clean.split(".")]
current_parts = [int(x) for x in current_clean.split(".")]
Expand Down
Loading