-
Notifications
You must be signed in to change notification settings - Fork 308
run Gratipay 150 #3341
Comments
We should turn off tips to Gratipay for users that were only giving to infinitechan. Surely they don't want to give to Gratipay anymore. |
Reviewed 54 (48) accounts. |
Backup taken and verified. |
Droplet spun up and updated. Still looking at infinitechan tipper tweaks ... |
I count 25 users with tips to both infinitechan and Gratipay. Of those, 7 have a tip to a third user. |
I count 14 users who only gave to infinitechan and Gratipay, who now have a non-zero tip Gratipay. |
We should also issue refunds for their remaining balance, but let's get payday run first. |
Okay, here's the script I came up with: #!/usr/bin/env python
from decimal import Decimal as D
from gratipay import wireup
env = wireup.env()
db = wireup.db(env)
tippers = db.all("""
select distinct on (p.username) p.*::participants
from participants p
join current_tips on tipper=p.username
where tippee='Gratipay'
and tipper in (
select tipper
from current_tips
where tippee='infinitechan'
)
""")
for p in tippers:
other = [t for t in p.get_current_tips() if t['tippee'] not in ('Gratipay', 'infinitechan')]
gratip = p.get_tip_to('Gratipay')['amount']
if len(other) == 0 and gratip > 0:
print len(other), p.get_tip_to('Gratipay')['amount'], p.username
p.set_tip_to('Gratipay', D('0.00')) |
Okay, tip to Gratipay zeroed out for 14 users. Refunding infinitechan tippers reticketed as #3342. |
Script started. |
Script ran for 17 minutes (0:17:50.957850). |
I'm not sure all the emails went out properly. |
Log downloaded and droplet destroyed. |
MassPay submitted. |
MassPay posted back for 93 users. IRC |
Escrow shuffled. |
Reticketed charge notification emails blockage. |
I guess that's that, eh? |
149
The text was updated successfully, but these errors were encountered: