From 53189f51969c751f4db110d044bc85301fd270b5 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Wed, 24 Apr 2024 11:52:07 +0100 Subject: [PATCH] Delete vacuum --- vacuum | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 vacuum diff --git a/vacuum b/vacuum deleted file mode 100644 index f7d4c70..0000000 --- a/vacuum +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/python3 -import sqlite3 -import os - -def get_db_connection(): - conn = sqlite3.connect("database.db") - conn.row_factory = sqlite3.Row - return conn - -if os.path.exists("database.db"): - print("vacuuming..") - conn = get_db_connection() - conn.execute("VACUUM") - conn.commit() - conn.close() - print("success") -else: - print("database not found") \ No newline at end of file