forked from indymedia/epicyon
Showing question results
parent
1e2e16c4e2
commit
756127b953
|
@ -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+'">'
|
||||||
|
|
Loading…
Reference in New Issue