From f7cbf6c054607c2cf7d6b018cf36d3291d03ee14 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 17 Aug 2026 12:42:41 -0300 Subject: [PATCH] fix(schedule): use isoweekday for correct day mapping --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1abc9e5..85c1c7f 100644 --- a/main.py +++ b/main.py @@ -56,7 +56,7 @@ if not DAYS_OF_WEEK: def is_within_schedule(): now = datetime.now() - return now.weekday() in DAYS_OF_WEEK and START_HOUR <= now.hour < END_HOUR + return now.isoweekday() in DAYS_OF_WEEK and START_HOUR <= now.hour < END_HOUR def generate_insight(topic):