Update notify.py
This commit is contained in:
parent
1e0ed169b6
commit
e6add581ee
@ -59,7 +59,7 @@ def process():
|
|||||||
{"$set": {"next_daily_notify_time": user_model.next_daily_notify_time + datetime.timedelta(days=1)}}
|
{"$set": {"next_daily_notify_time": user_model.next_daily_notify_time + datetime.timedelta(days=1)}}
|
||||||
)
|
)
|
||||||
|
|
||||||
for user in mongo.users_collection.find({"first_lesson_notify": {"$ne": None}, "hse_id": {"$ne": None}}):
|
for user in mongo.users_collection.find({"first_lesson_notify": True, "hse_id": {"$ne": None}}):
|
||||||
time_now = now(UserSchema().load(user))
|
time_now = now(UserSchema().load(user))
|
||||||
for lesson in mongo.lessons_collection.find({
|
for lesson in mongo.lessons_collection.find({
|
||||||
"hse_user_id": user["hse_id"],
|
"hse_user_id": user["hse_id"],
|
||||||
|
Loading…
Reference in New Issue
Block a user