make it a bit more logical structure

This commit is contained in:
Valentijn
2026-03-19 16:02:53 +01:00
parent 47bb6585d1
commit 175390fda7
4 changed files with 9 additions and 2 deletions

5
DB.py
View File

@@ -54,3 +54,8 @@ class Database:
self._con.commit()
print(f"✅ Inserted {inserted}/{len(shifts)} new shifts")
def delete_future_shifts(self):
cur = self._con.cursor()
cur.execute("DELETE FROM shifts WHERE shift_start > current_timestamp")
self._con.commit()
print(f"✅ Deleted all future shifts")