Skip to content

Commit 690b024

Browse files
committed
Fix hours_to_check() when feature is disabled
1 parent 96d3d73 commit 690b024

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎instagram_monitor.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6134,6 +6134,9 @@ def hours_to_check():
61346134
# - Ranges can overlap; we de-duplicate
61356135
# - Misconfigured ranges (e.g., MAX < MIN) will produce an empty list
61366136
# - Invalid hours (outside 0-23) are ignored
6137+
if not CHECK_POSTS_IN_HOURS_RANGE:
6138+
return list(range(24))
6139+
61376140
hours = set()
61386141

61396142
# If MIN and MAX are both 0, we consider the range disabled

0 commit comments

Comments
 (0)