Skip to content

Commit

Permalink
one more try
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Owocki authored and Kevin Owocki committed Dec 21, 2021
1 parent 9ce41f2 commit 5521892
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/retail/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,13 @@ def get_kudos_leaderboard(key='kudos_token.artist'):
context['audience'] = json.loads(context['members_history'])[-1][1]
pp.profile_time('completion_rate')
bounty_abandonment_rate = round(100 - completion_rate, 1)
total_bounties_usd = sum(base_bounties.exclude(idx_status__in=['expired', 'cancelled', 'canceled', 'unknown']).values_list('_val_usd_db', flat=True))
total_bounties_usd += sum(ManualStat.objects.filter(key='bounty_gmv', date__lt=timezone.now()).values_list('val', flat=True))
total_tips_usd = sum([
total_bounties_usd = float(sum(base_bounties.exclude(idx_status__in=['expired', 'cancelled', 'canceled', 'unknown']).values_list('_val_usd_db', flat=True)))
total_bounties_usd += float(sum(ManualStat.objects.filter(key='bounty_gmv', date__lt=timezone.now()).values_list('val', flat=True)))
total_tips_usd = float(sum([
tip.value_in_usdt
for tip in Tip.objects.filter(network='mainnet').send_happy_path() if tip.value_in_usdt
])
total_tips_usd += sum(ManualStat.objects.filter(key='tip_gmv', date__lt=timezone.now()).values_list('val', flat=True))
]))
total_tips_usd += float(sum(ManualStat.objects.filter(key='tip_gmv', date__lt=timezone.now()).values_list('val', flat=True)))
total_grants_usd = get_grants_history_at_date(timezone.now(), [])
total_kudos_usd = get_kudos_history_at_date(timezone.now(), [])
total_codefund_usd = get_codefund_history_at_date(timezone.now(), '')
Expand Down

1 comment on commit 5521892

@321q
Copy link

@321q 321q commented on 5521892 Feb 9, 2022

Choose a reason for hiding this comment

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

komiknya, 👍. makasih hadiahnya bang kevin,..

Please sign in to comment.