forked from MarseyWorld/MarseyWorld
fix stupidity
parent
bfdb7a87d7
commit
697a722c6e
|
@ -54,11 +54,11 @@ def buy_hat(v, hat_id):
|
||||||
|
|
||||||
hat_count = g.db.query(Hat).filter_by(user_id=v.id).count()
|
hat_count = g.db.query(Hat).filter_by(user_id=v.id).count()
|
||||||
if hat_count >= 249:
|
if hat_count >= 249:
|
||||||
badge_grant(user=ref_user, badge_id=154)
|
badge_grant(user=v, badge_id=154)
|
||||||
elif hat_count >= 99:
|
elif hat_count >= 99:
|
||||||
badge_grant(user=ref_user, badge_id=153)
|
badge_grant(user=v, badge_id=153)
|
||||||
elif hat_count >= 24:
|
elif hat_count >= 24:
|
||||||
badge_grant(user=v.id, badge_id=152)
|
badge_grant(user=v, badge_id=152)
|
||||||
|
|
||||||
return {"message": "Hat bought!"}
|
return {"message": "Hat bought!"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue