diff --git a/gratipay/billing/payday.py b/gratipay/billing/payday.py index 8fbff87670..6fb8ed1e76 100644 --- a/gratipay/billing/payday.py +++ b/gratipay/billing/payday.py @@ -154,7 +154,7 @@ def payin(self): self.process_payment_instructions(cursor) self.transfer_takes(cursor, self.ts_start) self.process_draws(cursor) - payments = cursor.all(""" + _payments_for_debugging = cursor.all(""" SELECT * FROM payments WHERE "timestamp" > %s """, (self.ts_start,)) try: @@ -166,7 +166,7 @@ def payin(self): import csv from time import time with open('%s_payments.csv' % time(), 'wb') as f: - csv.writer(f).writerows(payments) + csv.writer(f).writerows(_payments_for_debugging) raise self.take_over_balances()