make it a bit more logical structure
This commit is contained in:
5
DB.py
5
DB.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user