From 756127b953f7c854ce0cccc0b4b66ee11f7b904b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 10 Dec 2019 19:31:45 +0000 Subject: [PATCH] Showing question results --- webinterface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index 75f43f3c..8b644848 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1864,12 +1864,12 @@ def insertQuestion(baseDir: str,translate: {}, \ votesFilename= \ baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt' - showQuestion=True + showQuestionResults=False if os.path.isfile(votesFilename): - if messageId not in open(votesFilename).read(): - showQuestion=False + if messageId in open(votesFilename).read(): + showQuestionResults=True - if showQuestion: + if not showQuestionResults: # show the question options content+='
' content+='
'