From 91a035ec0c6f7915533cff00644c3f1ddf87330b Mon Sep 17 00:00:00 2001 From: "Luca2.Colucci@live.uwe.ac.uk" <luca2.colucci@live.uwe.ac.uk> Date: Mon, 14 Apr 2025 13:05:56 +0000 Subject: [PATCH] Edit showtime_controller.py --- controllers/showtime_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/showtime_controller.py b/controllers/showtime_controller.py index bbf86ac..fbe5f86 100644 --- a/controllers/showtime_controller.py +++ b/controllers/showtime_controller.py @@ -39,7 +39,7 @@ def add_showtime(movie_id, city, screen_number, show_date, show_time, available_ return "Showtime added successfully." -# 🟢 Delete a showtime +# Delete a showtime def delete_showtime(show_id): session = SessionLocal() showtime = session.query(Showtime).filter_by(show_id=show_id).first() @@ -47,10 +47,10 @@ def delete_showtime(show_id): session.delete(showtime) session.commit() session.close() - return "✅ Showtime deleted successfully!" + return "Showtime deleted successfully!" else: session.close() - return "❌ Showtime not found!" + return "Showtime not found!" def update_showtime_details(show_id, new_date, new_time, new_screen): with SessionLocal() as db: -- GitLab