1
This commit is contained in:
parent
1986db6c34
commit
55fd44ed87
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user