From 55fd44ed879f41fd1cbbb153277484e2262cdb5f Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sun, 12 Apr 2026 20:05:48 +0800 Subject: [PATCH] 1 --- backend/app/services/vote_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/vote_service.py b/backend/app/services/vote_service.py index 8173ebe..5da2e27 100644 --- a/backend/app/services/vote_service.py +++ b/backend/app/services/vote_service.py @@ -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())