fix: titles containing apostrophes now no longer break requests while still reporting back a success message

This commit is contained in:
2025-06-17 21:08:58 +02:00
parent 56d01d9e96
commit 6ee1c556e3

View File

@@ -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