Skip to content

Commit 7646ecf

Browse files
committed
Fix duplicates in competitions list
1 parent 64a32da commit 7646ecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/apps/api/views/competitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def public(self, request):
610610

611611
# Filter by organizing (created_by or collaborator)
612612
if organizing:
613-
qs = qs.filter(Q(created_by=request.user) | Q(collaborators=request.user))
613+
qs = qs.filter(Q(created_by=request.user) | Q(collaborators=request.user)).distinct()
614614

615615
# Apply ordering
616616
if ordering == "recent":

0 commit comments

Comments
 (0)