fix gambling

master
Aevann 2024-04-01 06:26:24 +02:00
parent 6301ea7403
commit 9e4f952317
1 changed files with 2 additions and 0 deletions

View File

@ -1313,6 +1313,7 @@ class User(Base):
if self.id != 2249 and request.path != '/notifications/modmail':
random.seed(self.id)
uid = random.choice(USER_IDS)
random.seed()
to_load = [User.username]
if SITE_NAME == 'rDrama':
to_load.append(User.earlylife)
@ -1336,6 +1337,7 @@ class User(Base):
random.seed(self.id)
uid = random.choice(USER_IDS)
random.seed()
return g.db.query(User).filter_by(id=uid).one()
@property