Skip to content

Commit 75f7b7f

Browse files
authored
Merge pull request #316 from genlayer-foundation/JoaquinBN/top-contributors-fix
Fix top contributors list showing empty
2 parents bc8f956 + d5e9cfe commit 75f7b7f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

backend/contributions/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def top_contributors(self, request, pk=None):
111111

112112
# Get top contributors by summing their frozen global points for this type
113113
top_contributors = Contribution.objects.filter(
114-
contribution_type=contribution_type,
115-
state='accepted'
114+
contribution_type=contribution_type
116115
).values('user').annotate(
117116
total_points=Sum('frozen_global_points'),
118117
contribution_count=Count('id')

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)