add badge to top 10 patrons by lifetime_donated

master
Aevann 2023-08-01 09:43:50 +03:00
parent 63c9715d7c
commit 106f8da561
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ def claim_rewards_all_users():
print(f'@{user.username} rewards claimed successfully!', flush=True)
for user in g.db.query(User).options(load_only(User.id)).order_by(User.lifetimedonated.desc()).limit(10).all():
badge_grant(badge_id=294, user=user)
def transfer_currency(v, username, currency_name, apply_tax):
MIN_CURRENCY_TRANSFER = 100
TAX_PCT = 0.03