Skip to content

Commit

Permalink
import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed May 8, 2020
1 parent e8322b3 commit 9ee22a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/retail/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def build_stat_results(keyword=None):
grants_gmv = Stat.objects.filter(key='grants').order_by('-pk').first().val
context['grants_gmv'] = str(round(grants_gmv / 10**6, 2)) + "m"
num_contributions = Contribution.objects.count()
from dashboard.models import BountyFulfillment
context['hours'] = sum(BountyFulfillment.objects.filter(fulfiller_hours_worked__isnull=False, bounty__current_bounty=True, fulfiller_hours_worked__lt=1000).values_list('fulfiller_hours_worked', flat=True))
context['no_contributions'] = num_contributions
context['no_bounties'] = Bounty.objects.current().count()
Expand Down

0 comments on commit 9ee22a4

Please sign in to comment.