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
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 1 additions and 4 deletions

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)