Skip to content

Commit b309eb2

Browse files
committed
fix: results n+1
1 parent 1f8e564 commit b309eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bullet/problems/logic/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_results(
2828
return (
2929
ResultRow.objects.filter(id__in=rows)
3030
.order_by("-solved_count", "-solved_problems", "competition_time")
31-
.select_related("team", "team__school")
31+
.select_related("team", "team__school", "team__venue", "team__venue__category")
3232
.prefetch_related("team__contestants", "team__contestants__grade")
3333
)
3434

0 commit comments

Comments
 (0)