fix(backend): Add missing slug fields to PerformanceDetailRead schema
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run

This commit is contained in:
fullsizemalt 2025-12-24 17:55:12 -08:00
parent 0f41349817
commit 8cd578b863
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,8 @@ def read_performance(slug: str, session: Session = Depends(get_session)):
prev_slug = None prev_slug = None
next_slug = None next_slug = None
prev_id = None
next_id = None
gap = 0 gap = 0
times_played = current_index + 1 # 1-based count times_played = current_index + 1 # 1-based count

View file

@ -118,7 +118,9 @@ class SongReadWithStats(SongRead):
class PerformanceDetailRead(PerformanceRead): class PerformanceDetailRead(PerformanceRead):
show: Optional["ShowRead"] = None show: Optional["ShowRead"] = None
previous_performance_id: Optional[int] = None previous_performance_id: Optional[int] = None
previous_performance_slug: Optional[str] = None
next_performance_id: Optional[int] = None next_performance_id: Optional[int] = None
next_performance_slug: Optional[str] = None
gap: Optional[int] = 0 gap: Optional[int] = 0
times_played: Optional[int] = 0 times_played: Optional[int] = 0
other_performances: List[PerformanceReadWithShow] = [] other_performances: List[PerformanceReadWithShow] = []