fix(schedule): use isoweekday for correct day mapping

This commit is contained in:
marco
2026-08-17 12:42:41 -03:00
parent 72d8c6d732
commit f7cbf6c054
+1 -1
View File
@@ -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):