no true
This commit is contained in:
parent
b11cb8d064
commit
5256d14c7c
@ -34,7 +34,7 @@ def process():
|
|||||||
mongo.lessons_collection.update_one({"_id": lesson['_id']}, {"$set": {"notified": True}})
|
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}}):
|
for user in mongo.users_collection.find({"next_daily_notify_time": {"$lte": time_now}}):
|
||||||
user_model = UserSchema().load(user)
|
user_model = UserSchema().load(user)
|
||||||
if time_now.weekday() != 6 or True:
|
if time_now.weekday() != 6:
|
||||||
lessons = mongo.get_today_lessons(user_model)
|
lessons = mongo.get_today_lessons(user_model)
|
||||||
if len(lessons) == 0:
|
if len(lessons) == 0:
|
||||||
text = "Сегодня у тебя нет пар."
|
text = "Сегодня у тебя нет пар."
|
||||||
|
Loading…
Reference in New Issue
Block a user