diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-14 01:23:43 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-14 01:23:43 +0100 |
commit | d2b705b8bb280d7c8951903b80a9f95993841315 (patch) | |
tree | 6c699f7b759505f3af3eb9c66b7587b04521d0fd /app/views/tasks.py | |
parent | e6a3836aab3e16dd2201136d0112d92f0b3356d6 (diff) | |
download | cheatdb-d2b705b8bb280d7c8951903b80a9f95993841315.tar.xz |
Don't require r query arg to check_task
Diffstat (limited to 'app/views/tasks.py')
-rw-r--r-- | app/views/tasks.py | 5 |
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) |