Merge pull request 'fix: titles containing apostrophes now no longer break requests while still reporting back a success message' (#29) from dev into main
Reviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user