try
Some checks failed
Deploy to ras-dan-01 / deploy (push) Failing after -1m24s

This commit is contained in:
2025-08-26 15:21:43 +02:00
parent 203739d799
commit 4f2df7fa86
4 changed files with 26 additions and 4 deletions

View File

@@ -415,6 +415,12 @@ def get_user_by_id(user_id, db_name="movie_db.db"):
return None
def delete_movie_by_id(movie_id: int, db_name: str = "movie_db.db"):
SQL = "DELETE FROM movie_list WHERE id = ?"
with DBcm.UseDatabase(db_name) as db:
db.execute(SQL, (movie_id,))
return db.rowcount > 0
if __name__ == "__main__":
create_movie_database()