Return 409 if torrent already exists
This commit is contained in:
parent
11522b79f0
commit
4f6a4d2681
|
@ -124,7 +124,7 @@ def create():
|
|||
message = _("Successfully created torrent <a href=\"/search?h={}\">{}</a>").format(newTorrent.fileid, newTorrent.fileid[:-20])
|
||||
return render_template("create.html", categories=categories.categories, messages=[message], tracker=settings["valid_tracker"])
|
||||
else:
|
||||
return render_template("create.html", categories=categories.categories, errors=newTorrent.errors, tracker=settings["valid_tracker"])
|
||||
return render_template("create.html", categories=categories.categories, errors=newTorrent.errors, tracker=settings["valid_tracker"]), 409
|
||||
|
||||
|
||||
@app.route("/download/<filename>")
|
||||
|
|
Loading…
Reference in a new issue