fix: titles containing apostrophes now no longer break requests while still reporting back a success message
This commit is contained in:
@@ -313,8 +313,8 @@ async def log_request():
|
|||||||
)
|
)
|
||||||
asynccache = KomCache()
|
asynccache = KomCache()
|
||||||
asynccache.insert(
|
asynccache.insert(
|
||||||
f"INSERT INTO manga_requests (manga_id, title, image) VALUES ({manga_id}, '{title}', :image)",
|
f"INSERT INTO manga_requests (manga_id, title, image) VALUES (:manga_id, :title, :image)",
|
||||||
args={"image": image_url},
|
args={"manga_id": manga_id, "title": title, "image": image_url},
|
||||||
)
|
)
|
||||||
return jsonify({"status": "success"})
|
return jsonify({"status": "success"})
|
||||||
return jsonify({"status": "failed"}), 400
|
return jsonify({"status": "failed"}), 400
|
||||||
|
|||||||
Reference in New Issue
Block a user