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