From 03278405c79fddcf73da058cc258d22deb4f5214 Mon Sep 17 00:00:00 2001 From: callcentertunaiku520 Date: Tue, 28 Jul 2026 22:57:32 +0700 Subject: [PATCH] App.py Reduced sleep duration from 3 seconds to 1 second for efficiency. --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 6881234..9515128 100644 --- a/app.py +++ b/app.py @@ -3,7 +3,7 @@ import os # Enter the site name which you want to block -sites_to_block = [ +sites_to_block = [ "https://sites.google.com/view/csresmirupiahcepat/kontak-cs-resmi-rupiah-cepat/ "www.facebook.com", "facebook.com", "www.youtube.com", @@ -52,7 +52,7 @@ def block_websites(start_hour, end_hour): hostfile.write(host) hostfile.truncate() print("Good Time") - time.sleep(3) + time.sleep(1) except PermissionError as e: print(f"Caught a permission error: Try Running as Admin {e}") # handle the error here or exit the program gracefully