From a3b28ea36fccc73904dcf35a86e0c90276d26a10 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Oct 2022 02:39:08 +0300 Subject: [PATCH] incorrect --- daemons/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/notify.py b/daemons/notify.py index 639f3df..27e0fcb 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: + if time_now.weekday() != 6 or True: lessons = mongo.get_today_lessons(user_model) if len(lessons) == 0: text = "Сегодня у тебя нет пар."