diff --git a/src/apps/api/views/competitions.py b/src/apps/api/views/competitions.py index c34eec48e..3f032b834 100644 --- a/src/apps/api/views/competitions.py +++ b/src/apps/api/views/competitions.py @@ -705,6 +705,7 @@ def get_leaderboard(self, request, pk): # - child submissions (submissions who has a parent i.e. parent field is not null) # - Failed submissions # - Cancelled submissions + num_entries = 1 # TMP, remove counting # num_entries = Submission.objects.filter( # Q(owner__username=submission['owner']) | # Q(parent__owner__username=submission['owner']), @@ -737,7 +738,7 @@ def get_leaderboard(self, request, pk): 'fact_sheet_answers': submission['fact_sheet_answers'], 'slug_url': submission['slug_url'], 'organization': submission['organization'], - # 'num_entries': num_entries, + 'num_entries': num_entries, 'created_when': submission['created_when'] }) for score in submission['scores']: diff --git a/src/static/riot/competitions/detail/leaderboards.tag b/src/static/riot/competitions/detail/leaderboards.tag index 25cc1e99a..b004d5ce9 100644 --- a/src/static/riot/competitions/detail/leaderboards.tag +++ b/src/static/riot/competitions/detail/leaderboards.tag @@ -34,6 +34,7 @@