From 8975f0e4f28060b83cc92437964fe6128e6dea93 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Sep 2022 03:27:46 +0200 Subject: [PATCH] fix bug --- 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 5a04d8927..f6009649a 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -52,11 +52,11 @@ def buy_hat(v, hat_id): f":marseycapitalistmanlet: @{v.username} has just bought `{hat.name}`, you have received your %5 cut ({int(hat.price * 0.05)} {currency}) :!marseycapitalistmanlet:" ) - if v.num_of_hats_bought >= 249: + if v.num_of_hats_bought >= 250: badge_grant(user=v, badge_id=154) - elif v.num_of_hats_bought >= 99: + elif v.num_of_hats_bought >= 100: badge_grant(user=v, badge_id=153) - elif v.num_of_hats_bought >= 24: + elif v.num_of_hats_bought >= 25: badge_grant(user=v, badge_id=152) return {"message": "Hat bought!"}