We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85bbbe2 commit a3e707dCopy full SHA for a3e707d
1 file changed
intermediateprojects/websiteblocker.py
@@ -14,8 +14,7 @@
14
while True:
15
16
# time of your work
17
- if dt(dt.now().year, dt.now().month, dt.now().day,8)
18
- < dt.now() < dt(dt.now().year, dt.now().month, dt.now().day,16):
+ if dt(dt.now().year, dt.now().month, dt.now().day,8) < dt.now() < dt(dt.now().year, dt.now().month, dt.now().day,16):
19
print("Working hours...")
20
with open(hosts_path, 'r+') as file:
21
content = file.read()
0 commit comments