From ab14089ce55b0e2d225493a2b85708feec8d4443 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Wed, 24 Apr 2024 11:51:17 +0100 Subject: [PATCH] Not needed --- cleardb.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 cleardb.py diff --git a/cleardb.py b/cleardb.py deleted file mode 100644 index d9a6c87..0000000 --- a/cleardb.py +++ /dev/null @@ -1,20 +0,0 @@ -import time -import subprocess - -def run_init_db(): - # Run the init_db.py script using subprocess - try: - subprocess.run(["python", "init_db"]) - except Exception as e: - print("Error:", e) - -def main(): - while True: - # Run init_db.py - run_init_db() - - # Wait for 5 minutes before running again - time.sleep(300) # 300 seconds = 5 minutes - -if __name__ == "__main__": - main()