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:
Steffen Schuhmann
2026-03-29 15:35:55 +02:00
parent 7c643ff67b
commit 8f86ecbeec

View File

@@ -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}
)