debugging
This commit is contained in:
+3
-2
@@ -1,4 +1,5 @@
|
|||||||
.auth*
|
.auth*
|
||||||
config.json
|
config.json
|
||||||
./venv
|
./venv/
|
||||||
./idea
|
/.idea/inspectionProfiles/
|
||||||
|
/.idea/
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ def process_events(events):
|
|||||||
now = datetime.now(tz=TIMEZONE)
|
now = datetime.now(tz=TIMEZONE)
|
||||||
is_working_time = is_work_time(now.time())
|
is_working_time = is_work_time(now.time())
|
||||||
is_weekend = now.weekday() not in WORK_DAYS
|
is_weekend = now.weekday() not in WORK_DAYS
|
||||||
|
print(is_weekend, now.weekday())
|
||||||
|
|
||||||
if is_event_active(events, now):
|
if is_event_active(events, now):
|
||||||
if is_weekend:
|
if is_weekend:
|
||||||
|
|||||||
Reference in New Issue
Block a user