Skip to content

Commit 34527d8

Browse files
authored
fix usage of get_clr_rounds_metadata (#9559)
1 parent f143058 commit 34527d8

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

app/grants/management/commands/sent_cart_reminder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def add_arguments(self, parser):
5151

5252
def handle(self, *args, **options):
5353

54-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
54+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
5555

5656
last_activity_by_user = CartActivity.objects.filter(latest=True, created_on__gt=round_start_date).exclude(metadata=[])
5757
count = 0

app/grants/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def grants_by_grant_type(request, grant_type):
10241024
if _type.get("keyword") == grant_type:
10251025
grant_label = _type.get("label")
10261026

1027-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
1027+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
10281028

10291029
params = {
10301030
'active': 'grants_explorer',
@@ -1208,7 +1208,7 @@ def grants_by_grant_clr(request, clr_round):
12081208

12091209
active_rounds = GrantCLR.objects.filter(is_active=True, start_date__lt=timezone.now(), end_date__gt=timezone.now()).order_by('-total_pot')
12101210

1211-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
1211+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
12121212

12131213
params = {
12141214
'active': 'grants_landing',

app/marketing/management/commands/post_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def earners(days, cadence):
280280

281281
def grants():
282282

283-
clr_round, _, _, _ = get_clr_rounds_metadata()
283+
clr_round, _, _, _, _, _, _, _ = get_clr_rounds_metadata()
284284
active_clr_rounds = GrantCLR.objects.filter(is_active=True, customer_name='ethereum', start_date__lt=timezone.now(), end_date__gt=timezone.now())
285285
if not active_clr_rounds.exists():
286286
return

app/perftools/management/commands/create_page_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def create_hack_event_cache():
109109

110110
def create_top_grant_spenders_cache():
111111

112-
_, round_start_date, _, _ = get_clr_rounds_metadata()
112+
_, round_start_date, _, _, _, _, _, _ = get_clr_rounds_metadata()
113113

114114
grant_types = GrantType.objects.filter(is_visible=True, is_active=True)
115115
for grant_type in grant_types:

app/retail/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def get_kudos_leaderboard(key='kudos_token.artist'):
637637
context['median_contribution'] = round(Contribution.objects.order_by("subscription__amount_per_period_usdt")[median_index].subscription.amount_per_period_usdt, 2)
638638
context['avg_contribution'] = round(grants_gmv / num_contributions, 2)
639639
from grants.utils import get_clr_rounds_metadata
640-
clr_round, _, _, _ = get_clr_rounds_metadata()
640+
clr_round, _, _, _, _, _, _, _ = get_clr_rounds_metadata()
641641
context['num_matching_rounds'] = clr_round
642642
context['ads_served'] = str(round(ManualStat.objects.filter(key='ads_served').order_by('-pk').first().val / 10**6, 1)) + "m"
643643
context['privacy_violations'] = ManualStat.objects.filter(key='privacy_violations').order_by('-pk').first().val

scripts/debug/add_squelched_profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# total stats
1010

1111

12-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
12+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
1313

1414
contributions = Contribution.objects.filter(created_on__gt=round_start_date, created_on__lt=round_end_date, success=True)
1515
pfs = PhantomFunding.objects.filter(created_on__gt=round_start_date, created_on__lt=round_end_date)

scripts/debug/address_usage_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# total stats
1010

11-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
11+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
1212

1313
contributions = Contribution.objects.filter(created_on__gt=round_start_date, created_on__lt=round_end_date, success=True)
1414
pfs = PhantomFunding.objects.filter(created_on__gt=round_start_date, created_on__lt=round_end_date)

scripts/debug/grants_collusion_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# total stats
88

9-
_, round_start_date, round_end_date, _ = get_clr_rounds_metadata()
9+
_, round_start_date, round_end_date, _, _, _, _, _ = get_clr_rounds_metadata()
1010

1111

1212
contributions = Contribution.objects.filter(created_on__gt=round_start_date, created_on__lt=round_end_date, success=True)

scripts/debug/grants_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from grants.models import Grant
22
from grants.utils import get_clr_rounds_metadata
33

4-
clr_round, _, _, _ = get_clr_rounds_metadata()
4+
clr_round, _, _, _, _, _, _, _ = get_clr_rounds_metadata()
55

66
# total stats
77

0 commit comments

Comments
 (0)