diff --git a/app/database/playlist_attempts.py b/app/database/playlist_attempts.py index 93bc8c5..d4085da 100644 --- a/app/database/playlist_attempts.py +++ b/app/database/playlist_attempts.py @@ -103,7 +103,7 @@ class ItemAttemptsResp(ItemAttemptsCountBase): session: AsyncSession, include: list[str] = [], ) -> "ItemAttemptsResp": - resp = cls.model_validate(item_attempts) + resp = cls.model_validate(item_attempts.model_dump()) resp.user = await UserResp.from_db( item_attempts.user, session=session,