debugging
This commit is contained in:
1 parent
d768bcb20d
commit
ddb284300d
2 files changed
+4
-2
No files matched your search
+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