Showing question results

main
Bob Mottram 2019-12-10 19:31:45 +00:00
parent 1e2e16c4e2
commit 756127b953
1 changed files with 4 additions and 4 deletions

View File

@ -1864,12 +1864,12 @@ def insertQuestion(baseDir: str,translate: {}, \
votesFilename= \ votesFilename= \
baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt' baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt'
showQuestion=True showQuestionResults=False
if os.path.isfile(votesFilename): if os.path.isfile(votesFilename):
if messageId not in open(votesFilename).read(): if messageId in open(votesFilename).read():
showQuestion=False showQuestionResults=True
if showQuestion: if not showQuestionResults:
# show the question options # show the question options
content+='<div class="question">' content+='<div class="question">'
content+='<form method="POST" action="/users/'+nickname+'/question'+pageNumberStr+'">' content+='<form method="POST" action="/users/'+nickname+'/question'+pageNumberStr+'">'