This commit is contained in:
aaron 2026-04-12 20:05:48 +08:00
parent 1986db6c34
commit 55fd44ed87

View File

@ -76,7 +76,7 @@ async def list_votes(
select(Vote)
.options(
selectinload(Vote.creator),
selectinload(Vote.options).selectinload(VoteOption.responses),
selectinload(Vote.options).selectinload(VoteOption.responses).selectinload(VoteResponse.voter),
)
.where(Vote.class_id == class_id)
.order_by(Vote.created_at.desc())