more hat shit

master
Aevann1 2022-09-03 03:13:23 +02:00
parent db9a995032
commit 29f09634fd
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ def equip_hat(v, hat_id):
@app.post("/unequip_hat")
@auth_required
def unequip_hat(v):
if not FEATURES['HATS']: abort(404)
v.equipped_hat_id = None
g.db.add(v)