fix
This commit is contained in:
parent
b11574c188
commit
9a9bdd8d84
@ -90,7 +90,8 @@ def process():
|
||||
)
|
||||
except ApiTelegramException:
|
||||
pass
|
||||
mongo.lessons_collection.update_many({"begin": {"$gte": time_now.date(), "$lt": (time_now + datetime.timedelta(days=1)).date()}}, {"$set": {"notified_today": True}})
|
||||
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}})
|
||||
break
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user