suppression de vidéos

This commit is contained in:
Gabriel Radureau
2025-10-21 18:52:39 +02:00
parent fbe3c01de7
commit 225a1911c8
4 changed files with 74 additions and 3 deletions

View File

@@ -11,6 +11,10 @@ def get_conn():
conn.execute("PRAGMA foreign_keys = ON;")
return conn
def delete_video(file_name):
with get_conn() as conn:
conn.execute("DELETE FROM videos WHERE file_name = ?", (file_name,))
conn.commit()
def load_videos():
with get_conn() as conn: