From a0cdbbc2f9e5c30f11f7223ae20f163f77525f44 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Nov 2024 21:43:14 +0200 Subject: [PATCH] debug on staging --- files/classes/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/classes/user.py b/files/classes/user.py index dac336e07..9d2df7819 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1443,6 +1443,8 @@ class User(Base): User.last_active > three_days, not_(User.username.like('deleted~%')), ).order_by(User.truescore.desc()).first() + if self.id == 1: + print(uid, uid[0], flush=True) uid = uid[0] if uid else self.id redis_instance.set(f'switched-{self.id}', uid) return g.db.get(User, uid)