Skip to content

Commit

Permalink
Merge pull request #5765 from gitcoinco/clr-success-filter
Browse files Browse the repository at this point in the history
ensure only successful contributions are counted for CLR
  • Loading branch information
thelostone-mc authored Jan 10, 2020
2 parents 73be076 + 83903c8 commit 6efd4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/grants/clr.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def predict_clr(random_data=False, save_to_db=False, from_date=None, clr_type=No
clr_calc_start_time = timezone.now()

# get all the eligible contributions and calculate total
contributions = Contribution.objects.prefetch_related('subscription').filter(created_on__gte=CLR_START_DATE, created_on__lte=from_date)
contributions = Contribution.objects.prefetch_related('subscription').filter(created_on__gte=CLR_START_DATE, created_on__lte=from_date, success=True)
debug_output = []

if clr_type == 'tech':
Expand Down

0 comments on commit 6efd4a8

Please sign in to comment.