fix 500 error

master
Aevann 2024-11-14 21:49:18 +02:00
parent a0cdbbc2f9
commit 3e7aa7297e
1 changed files with 1 additions and 1 deletions

View File

@ -1435,7 +1435,7 @@ class User(Base):
return self
uid = redis_instance.get(f'switched-{self.id}')
if uid: return g.db.get(User, uid)
if uid: return g.db.get(User, int(uid))
three_days = time.time() - 259200
uid = g.db.query(User.id).filter(