From b11cb8d064ddc460c5497fb1665855d009777786 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Oct 2022 02:54:43 +0300 Subject: [PATCH] timedelta --- daemons/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/notify.py b/daemons/notify.py index 27e0fcb..5412dc9 100644 --- a/daemons/notify.py +++ b/daemons/notify.py @@ -49,7 +49,7 @@ def process(): pass mongo.users_collection.update_one( {"chat_id": user["chat_id"]}, - {"$set": {"next_daily_notify_time": get_next_daily_notify_time(user_model, time_now)}} + {"$set": {"next_daily_notify_time": user_model.next_daily_notify_time + datetime.timedelta(days=1)}} )