From 4b05aa4c0483571bbbfd9b2321c8235139870e1a Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Wed, 23 Nov 2016 18:20:34 -0500 Subject: [PATCH] Fix regression from #3975 --- gratipay/models/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gratipay/models/__init__.py b/gratipay/models/__init__.py index 5c78b6b802..dbea9dee8f 100644 --- a/gratipay/models/__init__.py +++ b/gratipay/models/__init__.py @@ -77,7 +77,7 @@ 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 @@ -85,7 +85,7 @@ def _check_balances(cursor): 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