Skip to content

Fix typings for addition in eth_sum #5243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3254,8 +3254,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