From 6ee1c556e371913124f4ca9e697c0f65e7bfc770 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Tue, 17 Jun 2025 21:08:58 +0200 Subject: [PATCH] fix: titles containing apostrophes now no longer break requests while still reporting back a success message --- src/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 5f0054e..59f0149 100644 --- a/src/app.py +++ b/src/app.py @@ -313,8 +313,8 @@ async def log_request(): ) asynccache = KomCache() asynccache.insert( - f"INSERT INTO manga_requests (manga_id, title, image) VALUES ({manga_id}, '{title}', :image)", - args={"image": image_url}, + f"INSERT INTO manga_requests (manga_id, title, image) VALUES (:manga_id, :title, :image)", + args={"manga_id": manga_id, "title": title, "image": image_url}, ) return jsonify({"status": "success"}) return jsonify({"status": "failed"}), 400 -- 2.49.1