Starting to display more information about recipients tied to transactions

pull/1/head
Raymond Yee 2011-12-21 18:33:36 -05:00
parent 48c5988a08
commit 21c009998a
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ def drop_all_transactions():
c.save()
def recipient_status(clist):
return [[[r.status for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in clist]
return [[[(r.email, r.txn_id, r.status, r.amount) for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in clist]
# by the time we've executed a campaign, we should have r.status = 'COMPLETED' for primary but None for secondary
# [[[r.status for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in campaigns_incomplete()]

View File

@ -225,7 +225,7 @@ class PaymentManager( object ):
except:
traceback.print_exc()
def run_query(self, transaction_list, summary, pledged, authorized ):
def run_query(self, transaction_list, summary, pledged, authorized):
'''
Generic query handler for returning summary and transaction info, see query_user, query_list and query_campaign
'''