Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Fix regression from #3975
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Nov 23, 2016
1 parent 3d89771 commit 4b05aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gratipay/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ def _check_balances(cursor):
select participant as username, sum(amount) as a
from exchanges
where amount > 0
and (status is null or status = 'succeeded')
and (status = 'unknown' or status = 'succeeded')
group by participant
union all
select participant as username, sum(amount-fee) as a
from exchanges
where amount < 0
and (status is null or status <> 'failed')
and (status = 'unknown' or status <> 'failed')
group by participant
union all
Expand Down

0 comments on commit 4b05aa4

Please sign in to comment.