From d2b705b8bb280d7c8951903b80a9f95993841315 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 14 May 2018 01:23:43 +0100 Subject: [PATCH] Don't require r query arg to check_task --- app/views/tasks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/tasks.py b/app/views/tasks.py index 58d6d259..37595432 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)