fix(schedule): use isoweekday for correct day mapping
This commit is contained in:
@@ -56,7 +56,7 @@ if not DAYS_OF_WEEK:
|
|||||||
|
|
||||||
def is_within_schedule():
|
def is_within_schedule():
|
||||||
now = datetime.now()
|
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):
|
def generate_insight(topic):
|
||||||
|
|||||||
Reference in New Issue
Block a user