fix forced_hats

master
Aevann 2023-09-29 09:09:59 +03:00
parent e08c608288
commit a14656de22
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ class User(Base):
user_forced_hats = [] user_forced_hats = []
for k, val in forced_hats.items(): for k, val in forced_hats.items():
if getattr(self, k) and getattr(self, k) > 1: 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)) user_forced_hats.append(random.choice(val))
else: else:
user_forced_hats.append(val) user_forced_hats.append(val)