Skip to content

Commit

Permalink
sybil protectoin criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Sep 24, 2020
1 parent af9662f commit 4df4c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,9 +1044,9 @@ def grant_details(request, grant_id, grant_slug):
if item == 'grants_contribution.originated_address':
title = 'Funds origination address'
sybil_profiles += [
[f'THIS {title} Summary Last 90 days', get_grant_sybil_profile(grant.pk, 90 * 24, index_on=item)],
[f'{grant.grant_type.name} {title} Summary Last 90 Days', get_grant_sybil_profile(None, 90 * 24, grant.grant_type, index_on=item)],
[f'All {title} Summary Last 90 Days', get_grant_sybil_profile(None, 90 * 24, None, index_on=item)],
[f'THIS {title} Summary Last 60 days', get_grant_sybil_profile(grant.pk, 60 * 24, index_on=item)],
[f'{grant.grant_type.name} {title} Summary Last 60 Days', get_grant_sybil_profile(None, 60 * 24, grant.grant_type, index_on=item)],
[f'All {title} Summary Last 60 Days', get_grant_sybil_profile(None, 60 * 24, None, index_on=item)],
]
_contributions = Contribution.objects.filter(subscription__grant=grant, subscription__is_postive_vote=True).prefetch_related('subscription', 'subscription__contributor_profile')
contributions = list(_contributions.order_by('-created_on'))
Expand Down

0 comments on commit 4df4c78

Please sign in to comment.