fix stupidity

master
Aevann1 2022-09-03 02:54:17 +02:00
parent bfdb7a87d7
commit 697a722c6e
1 changed files with 3 additions and 3 deletions

View File

@ -54,11 +54,11 @@ def buy_hat(v, hat_id):
hat_count = g.db.query(Hat).filter_by(user_id=v.id).count()
if hat_count >= 249:
badge_grant(user=ref_user, badge_id=154)
badge_grant(user=v, badge_id=154)
elif hat_count >= 99:
badge_grant(user=ref_user, badge_id=153)
badge_grant(user=v, badge_id=153)
elif hat_count >= 24:
badge_grant(user=v.id, badge_id=152)
badge_grant(user=v, badge_id=152)
return {"message": "Hat bought!"}