Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix buggy number on participants #8683

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Mar 24, 2021

Description
  • rename participants -> registrants
  • fix count on dashboard (which was previously turning up as 0)
  • changes makes one less query

image

Refers/Fixes

Issue:
Problem: Sponsor dashboard still says 0 participants, should say the registrants #
Request: Sponsor dashboard should say number of participants, bugged right now

^ reported by @connoroday

Comment on lines +4254 to +4256
all_participants = BountyEvent.objects.filter(bounty__event_id=hackathon_event.id, bounty__in=query_prizes)
num_participants = all_participants.count()
num_submissions = all_participants.filter(event_type='submit_work').count()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Copy link
Contributor

@octavioamu octavioamu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appppppproved just Don't know what is collage or where it came from but the rest looks good

@@ -20,7 +20,7 @@
from django.urls import path, re_path

from grants.views import (
add_grant_from_collection, bulk_fund, bulk_grants_for_cart, cancel_grant_v1, cart_thumbnail, clr_grants,
add_grant_from_collection, bulk_fund, bulk_grants_for_cart, cancel_grant_v1, cart_thumbnail, clr_grants, collage,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is collage? I don't see it here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's here -- #8674

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🙌 😄

@thelostone-mc thelostone-mc merged commit 161d949 into gitcoinco:master Mar 25, 2021
PR Review Board automation moved this from Engineering-Review to Done Mar 25, 2021
iRhonin pushed a commit to iRhonin/web that referenced this pull request Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants