From b9722ffd47274d1e0db70ca202000dea180bcff3 Mon Sep 17 00:00:00 2001 From: Yax 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: