Skip to content

Commit a3e707d

Browse files
authored
Update websiteblocker.py
1 parent 85bbbe2 commit a3e707d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

intermediateprojects/websiteblocker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
while True:
1515

1616
# 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):
17+
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):
1918
print("Working hours...")
2019
with open(hosts_path, 'r+') as file:
2120
content = file.read()

0 commit comments

Comments
 (0)