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] = []