fix janny salary

master
Aevann 2024-10-23 17:37:00 +03:00
parent 5c9cc5332b
commit 4c3d4ac8ac
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ def _unpin_expired():
def _give_marseybux_salary():
for u in g.db.query(User).filter(User.admin_level > 0).all():
marseybux_salary = u.admin_level * 10000
if SITE_NAME == 'WPD':
marseybux_salary *= 2
u.pay_account('marseybux', marseybux_salary, "Janny salary")
send_repeatable_notification(u.id, f"You have received your monthly janny salary of {commas(marseybux_salary)} Marseybux!")