From 8cd578b8634cc0d363d3709863af2da16e749ce6 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Wed, 24 Dec 2025 17:55:12 -0800 Subject: [PATCH] fix(backend): Add missing slug fields to PerformanceDetailRead schema --- backend/routers/performances.py | 2 ++ backend/schemas.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/backend/routers/performances.py b/backend/routers/performances.py index 8c96938..e267a9f 100644 --- a/backend/routers/performances.py +++ b/backend/routers/performances.py @@ -39,6 +39,8 @@ def read_performance(slug: str, session: Session = Depends(get_session)): prev_slug = None next_slug = None + prev_id = None + next_id = None gap = 0 times_played = current_index + 1 # 1-based count diff --git a/backend/schemas.py b/backend/schemas.py index 290be22..251e79e 100644 --- a/backend/schemas.py +++ b/backend/schemas.py @@ -118,7 +118,9 @@ class SongReadWithStats(SongRead): class PerformanceDetailRead(PerformanceRead): show: Optional["ShowRead"] = None previous_performance_id: Optional[int] = None + previous_performance_slug: Optional[str] = None next_performance_id: Optional[int] = None + next_performance_slug: Optional[str] = None gap: Optional[int] = 0 times_played: Optional[int] = 0 other_performances: List[PerformanceReadWithShow] = []