fix: model_validate multiline call in get_session_detail (sessions.py:64)
sed one-liner only handled single-line calls; this one spanned 3 lines. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,9 +61,8 @@ async def get_session_detail(
|
||||
SongRead.model_validate(s).model_copy(update={"version_count": len(s.versions)})
|
||||
for s in rehearsal.songs
|
||||
]
|
||||
return RehearsalSessionDetail.model_validate(
|
||||
rehearsal,
|
||||
update={"recording_count": len(songs), "songs": songs},
|
||||
return RehearsalSessionDetail.model_validate(rehearsal).model_copy(
|
||||
update={"recording_count": len(songs), "songs": songs}
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user