remove debugging

master
Aevann 2024-11-14 21:50:14 +02:00
parent 3e7aa7297e
commit 78a066297d
2 changed files with 1 additions and 3 deletions

View File

@ -1443,8 +1443,6 @@ class User(Base):
User.last_active > three_days, User.last_active > three_days,
not_(User.username.like('deleted~%')), not_(User.username.like('deleted~%')),
).order_by(User.truescore.desc()).first() ).order_by(User.truescore.desc()).first()
if self.id == 1:
print(uid, uid[0], flush=True)
uid = uid[0] if uid else self.id uid = uid[0] if uid else self.id
redis_instance.set(f'switched-{self.id}', uid) redis_instance.set(f'switched-{self.id}', uid)
return g.db.get(User, uid) return g.db.get(User, uid)

View File

@ -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_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) fool_end = datetime.datetime.strptime(f'2/4/{t.year}', '%d/%m/%Y') + datetime.timedelta(hours=16)
def IS_FOOL(): 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 CHUD_PHRASES = ( #if you add a phrase, remove one in turn
"Trans lives matter", "Trans lives matter",