Don't require r query arg to check_task

This commit is contained in:
rubenwardy
2018-05-14 01:23:43 +01:00
parent e6a3836aab
commit d2b705b8bb

View File

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