From 5256d14c7ccce9724bb7d6955bb018ad4aebea41 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Oct 2022 03:02:46 +0300 Subject: [PATCH] no true --- daemons/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/notify.py b/daemons/notify.py index 5412dc9..a34b01a 100644 --- a/daemons/notify.py +++ b/daemons/notify.py @@ -34,7 +34,7 @@ def process(): mongo.lessons_collection.update_one({"_id": lesson['_id']}, {"$set": {"notified": True}}) for user in mongo.users_collection.find({"next_daily_notify_time": {"$lte": time_now}}): user_model = UserSchema().load(user) - if time_now.weekday() != 6 or True: + if time_now.weekday() != 6: lessons = mongo.get_today_lessons(user_model) if len(lessons) == 0: text = "Сегодня у тебя нет пар."