From 3e7aa7297ec3852adca7575e2ced9573197df0c2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Nov 2024 21:49:18 +0200 Subject: [PATCH] fix 500 error --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(