diff --git a/daemons/notify.py b/daemons/notify.py index 47b10a9..e9b3b7d 100644 --- a/daemons/notify.py +++ b/daemons/notify.py @@ -91,7 +91,7 @@ def process(): except ApiTelegramException: pass start_of_day = datetime.datetime(year=time_now.year, month=time_now.month, day=time_now.day) - mongo.lessons_collection.update_many({"begin": {"$gte": start_of_day, "$lt": (start_of_day + datetime.timedelta(days=1))}}, {"$set": {"notified_today": True}}) + mongo.lessons_collection.update_many({"begin": {"$gte": start_of_day, "$lt": (start_of_day + datetime.timedelta(days=1))}, "hse_user_id": user["hse_id"]}, {"$set": {"notified_today": True}}) break