-
Notifications
You must be signed in to change notification settings - Fork 308
Conversation
Denied payments have an empty transaction id. Evident in the log and appearing under inspection. diff --git a/bin/masspay.py b/bin/masspay.py
index 99d7f8d..01715cd 100755
--- a/bin/masspay.py
+++ b/bin/masspay.py
@@ -179,8 +179,12 @@ def load_statuses_and_refs():
if line.startswith('Transaction ID,Recipient'):
break
for rec in csv.reader(fp):
- statuses[rec[1]] = _status_map[rec[5]]
- refs[rec[1]] = rec[0]
+ ref = rec[0]
+ email = rec[1]
+ status = rec[5]
+ statuses[email] = _status_map[status]
+ refs[email] = ref
+ import pdb; pdb.set_trace()
return statuses, refs |
No, doesn't appear in the log. We could manually add before posting masspay back, but we currently require a unique ref (if not |
We could munge it to be unique. |
Ready for review @rohitpaulk @clone1018. |
This requires the payday runner to paste in the unique transaction id for the MassPay. I'll update the docs ... |
bin/masspay.py
Outdated
for i, rec in enumerate(csv.reader(fp)): | ||
ref = rec[0] | ||
if not ref: | ||
ref = '{}-{:>04}'.format(masspay_id, i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth adding a comment that says why we're doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in dda94ad.
Doc update in gratipay/inside.gratipay.com#1113. |
Actually, this appears to not be true.
|
I guess it's because it wants to be unique per network, and that's in a different table ( |
Gonna run this per @rohitpaulk in slack:
Will leave the merge though ... |
And it [ref] is needed because want to have a track it. This is part of backfill |
Yep. Backfill being #4442. |
Discovered in gratipay/inside.gratipay.com#1110.