From a14656de22432c94297cf83170c030f56df53f35 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 29 Sep 2023 09:09:59 +0300 Subject: [PATCH] fix forced_hats --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 5c254d39b..0bd999443 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -343,7 +343,7 @@ class User(Base): user_forced_hats = [] for k, val in forced_hats.items(): if getattr(self, k) and getattr(self, k) > 1: - if isinstance(val, tuple): + if isinstance(val[0], tuple): user_forced_hats.append(random.choice(val)) else: user_forced_hats.append(val)