aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/tasks.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/tasks.py b/app/views/tasks.py
index 58d6d25..3759543 100644
--- a/app/views/tasks.py
+++ b/app/views/tasks.py
@@ -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)