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