forked from rDrama/rDrama
1
0
Fork 0

claim the paypig awards on the highest truescore account of accounts using the same email

master
Aevann 2023-03-25 15:29:32 +02:00
parent 00aa44f060
commit f0ab7f7490
1 changed files with 1 additions and 1 deletions

View File

@ -1431,7 +1431,7 @@ def claim_rewards(v):
def claim_rewards_all_users():
emails = [x[0] for x in g.db.query(Transaction.email).filter_by(claimed=None).all()]
users = g.db.query(User).filter(User.email.in_(emails)).all()
users = g.db.query(User).filter(User.email.in_(emails)).order_by(User.truescore.desc()).all()
for user in users:
claim_rewards(user)