mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-14 14:22:30 +01:00
Don't require r query arg to check_task
This commit is contained in:
@ -52,10 +52,7 @@ def check_task(id):
|
||||
return jsonify(info)
|
||||
else:
|
||||
r = request.args.get("r")
|
||||
if r is None:
|
||||
abort(422)
|
||||
|
||||
if status == "SUCCESS":
|
||||
if r is not None and status == "SUCCESS":
|
||||
return redirect(r)
|
||||
else:
|
||||
return render_template("tasks/view.html", info=info)
|
||||
|
Reference in New Issue
Block a user