Delete vacuum

This commit is contained in:
Tracker-Friendly 2024-04-24 11:52:07 +01:00
parent d55d22b765
commit 53189f5196
1 changed files with 0 additions and 18 deletions

18
vacuum
View File

@ -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")