From 0618134eacd1a8ccc194cf6767e407fcf2b12fe4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 16 Sep 2022 16:06:18 +0200 Subject: [PATCH] fix hat badges --- 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 88f623fb3..bef55183a 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -73,11 +73,11 @@ def buy_hat(v, hat_id): f":marseycapitalistmanlet: @{v.username} has just bought `{hat.name}`, you have received your 10% cut ({int(hat.price * 0.1)} {currency}) :!marseycapitalistmanlet:" ) - if v.num_of_owned_hats >= 250: + if v.num_of_owned_hats >= 249: badge_grant(user=v, badge_id=154) - elif v.num_of_owned_hats >= 100: + elif v.num_of_owned_hats >= 99: badge_grant(user=v, badge_id=153) - elif v.num_of_owned_hats >= 25: + elif v.num_of_owned_hats >= 24: badge_grant(user=v, badge_id=152) return {"message": f"'{hat.name}' bought!"}