From 44cee64d133029a780685205c421ea043bebef05 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 22 Oct 2022 21:25:42 +0300 Subject: [PATCH] bug fix --- helpers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/__init__.py b/helpers/__init__.py index fcb766c..197a1c3 100644 --- a/helpers/__init__.py +++ b/helpers/__init__.py @@ -20,6 +20,6 @@ def get_next_daily_notify_time(user: User, time_now: datetime.datetime | None = hour=hours, minute=minutes ) - if time_now.hour * 60 * time_now.minute < hours * 60 + minutes: + if time_now.hour * 60 + time_now.minute < hours * 60 + minutes: next_time = next_time + datetime.timedelta(days=1) return next_time