the @Wieoaka question

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-02 13:22:18 +02:00
parent 2c989d5c28
commit dda49fdd70
1 changed files with 4 additions and 1 deletions

View File

@ -235,7 +235,10 @@ class User(Base):
def forced_hat(self):
user_forced_hats = []
for k, val in forced_hats.items():
if getattr(self, k):
if k == 'marsify':
if self.marsify > 1:
user_forced_hats.append(val)
elif getattr(self, k):
user_forced_hats.append(val)
if user_forced_hats: return random.choice(user_forced_hats)
else: return None