diff --git a/files/classes/user.py b/files/classes/user.py index 9d2df7819..008931be0 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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(