forked from MarseyWorld/MarseyWorld
fix forced_hats
parent
e08c608288
commit
a14656de22
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue