Don't require r query arg to check_task
This commit is contained in:
parent
e6a3836aab
commit
d2b705b8bb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue