From 697a722c6e4882f051cd828bb58ace287e306997 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Sep 2022 02:54:17 +0200 Subject: [PATCH] fix stupidity --- files/routes/hats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/hats.py b/files/routes/hats.py index 832973772..69634eb95 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -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!"}