From 95d0ab5f082bdc42a6d70e396969090a9c92a5bc Mon Sep 17 00:00:00 2001
From: Aditya Anand M C
- {{ num_participants }} participants + {{ num_participants }} registrants {{ num_submissions }} submissions
diff --git a/app/dashboard/views.py b/app/dashboard/views.py index 0cdf5d0a67f..07eff833730 100644 --- a/app/dashboard/views.py +++ b/app/dashboard/views.py @@ -4251,8 +4251,9 @@ def dashboard_sponsors(request, hackathon='', panel='prizes'): what = f'hackathon:{hackathon_event.id}{filter}' - num_participants = BountyEvent.objects.filter(bounty__event_id=hackathon_event.id, event_type='express_interest', bounty__in=query_prizes).count() - num_submissions = BountyEvent.objects.filter(bounty__event_id=hackathon_event.id, event_type='submit_work', bounty__in=query_prizes).count() + 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() profile = request.user.profile if request.user.is_authenticated and hasattr(request.user, 'profile') else None diff --git a/app/grants/urls.py b/app/grants/urls.py index eee41241a3f..65087f94151 100644 --- a/app/grants/urls.py +++ b/app/grants/urls.py @@ -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, collection_thumbnail, contribute_to_grants_v1, contribution_addr_from_all_as_json, contribution_addr_from_grant_as_json, contribution_addr_from_grant_during_round_as_json, contribution_addr_from_round_as_json, contribution_info_from_grant_during_round_as_json, create_matching_pledge_v1, @@ -30,7 +30,7 @@ grants, grants_addr_as_json, grants_bulk_add, grants_by_grant_type, grants_cart_view, grants_info, grants_landing, ingest_contributions, ingest_contributions_view, invoice, leaderboard, manage_ethereum_cart_data, new_matching_partner, profile, quickstart, remove_grant_from_collection, save_collection, subscription_cancel, - toggle_grant_favorite, verify_grant, collage + toggle_grant_favorite, verify_grant, ) app_name = 'grants/' diff --git a/app/grants/views.py b/app/grants/views.py index 21b8b1f49dd..47f76b5fdd0 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -22,6 +22,7 @@ import html import json import logging +import math import re import time import uuid @@ -3071,7 +3072,6 @@ def add_grant_from_collection(request, collection_id): https://c.gitcoin.co/grants/b8fcf1833fee32fc4be6fba254c1d912/cashu.png ''' -import math def get_urls(scale): import random global des_urls