From 5f97260b7be0edf325106224a603b5640b30bcda Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 20 Sep 2015 12:36:06 +0200 Subject: [PATCH] Fix QP retrieval --- app/controllers/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api.py b/app/controllers/api.py index 5400d4d..6f0bca2 100644 --- a/app/controllers/api.py +++ b/app/controllers/api.py @@ -121,7 +121,7 @@ def report(): def accept_comment(): try: - id = request.args.get('id', '') + id = request.args.get('comment', 0) secret = request.args.get('secret', '') if secret != config.SECRET: @@ -141,7 +141,7 @@ def accept_comment(): def reject_comment(): try: - id = request.args.get('id', '') + id = request.args.get('comment', 0) secret = request.args.get('secret', '') if secret != config.SECRET: