From 0a3652ae0d14a553dfa4cfef7f4a3e2893cb3888 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 29 Oct 2019 14:58:48 +0000 Subject: [PATCH] questionparams --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index aab614d9..73e4d54b 100644 --- a/daemon.py +++ b/daemon.py @@ -3259,12 +3259,12 @@ class PubServer(BaseHTTPRequestHandler): # post being voted on messageId=None if 'messageId=' in questionParams: - messageId=searchParams.split('messageId=')[1] + messageId=questionParams.split('messageId=')[1] if '&' in messageId: messageId=messageId.split('&')[0] answer=None if 'answer=' in questionParams: - answer=searchParams.split('answer=')[1] + answer=questionParams.split('answer=')[1] if '&' in answer: answer=answer.split('&')[0] print('Voting on message '+messageId)