From 78a066297d88103cc62ac0010bf0a725aed0f9a3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 14 Nov 2024 21:50:14 +0200 Subject: [PATCH] remove debugging --- files/classes/user.py | 2 -- files/helpers/config/const.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 008931be0..3125ea98f 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1443,8 +1443,6 @@ 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) diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 54c0a3500..19b728ea6 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -1377,7 +1377,7 @@ def IS_FOURTH(): fool_begin = datetime.datetime.strptime(f'1/4/{t.year}', '%d/%m/%Y') + datetime.timedelta(hours=16) fool_end = datetime.datetime.strptime(f'2/4/{t.year}', '%d/%m/%Y') + datetime.timedelta(hours=16) def IS_FOOL(): - return True or fool_begin < datetime.datetime.now() < fool_end + return fool_begin < datetime.datetime.now() < fool_end CHUD_PHRASES = ( #if you add a phrase, remove one in turn "Trans lives matter",