Skip to content

Commit

Permalink
feat: account for single contribution for grant in clr
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc authored and aewens committed Oct 2, 2019
1 parent 3dcb05e commit 5886994
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/grants/clr.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def generate_grant_pair(grant):
else:
unique_contributions[profile] = amount

if len(unique_contributions) == 1:
profile = next(iter(unique_contributions))
unique_contributions['_' + profile] = 1

profile_pairs = list(combinations(unique_contributions.keys(), 2))
contribution_pairs = list(combinations(unique_contributions.values(), 2))

Expand Down

0 comments on commit 5886994

Please sign in to comment.