fix(backend): Add missing slug fields to PerformanceDetailRead schema
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
Some checks are pending
Deploy Elmeg / deploy (push) Waiting to run
This commit is contained in:
parent
0f41349817
commit
8cd578b863
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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] = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue