Skip to content

Commit

Permalink
dont count one time contribution as recurring
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Jun 13, 2019
1 parent 7957aee commit b0e17b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/grants/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@ def psave_grant(sender, instance, **kwargs):
instance.amount_received += Decimal(value_usdt)

if subscription.num_tx_processed <= subscription.num_tx_approved and value_usdt:
instance.monthly_amount_subscribed += subscription.get_converted_monthly_amount()
if subscription.num_tx_approved != 1:
instance.monthly_amount_subscribed += subscription.get_converted_monthly_amount()
#print("-", subscription.id, value_usdt, instance.monthly_amount_subscribed )


Expand Down

0 comments on commit b0e17b6

Please sign in to comment.