small fix for ppl with progstack=1

pull/48/head
Aevann1 2022-12-05 02:44:58 +02:00
parent ac26c2581d
commit 814552cdfe
1 changed files with 1 additions and 4 deletions

View File

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