Skip to content

Commit

Permalink
Merge pull request #5243 from edsonayllon/master
Browse files Browse the repository at this point in the history
Fix typings for addition in eth_sum
  • Loading branch information
thelostone-mc authored Oct 2, 2019
2 parents 6ee260f + 11a5069 commit 3dcb05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3256,8 +3256,8 @@ def get_eth_sum(self, sum_type='collected', network='mainnet', bounties=None):
logger.exception(e)
pass

# if sum_type == 'collected':
# eth_sum = eth_sum + float(sum([amount.value_in_eth for amount in self.tips])) if self.tips else eth_sum
if sum_type == 'collected' and self.tips:
eth_sum = eth_sum + sum([ float(amount.value_in_eth) for amount in self.tips ])

return eth_sum

Expand Down

0 comments on commit 3dcb05e

Please sign in to comment.