forked from indymedia/epicyon
Checking questions file
parent
84bee5201a
commit
62c71d03c9
|
@ -1796,7 +1796,12 @@ def insertQuestion(baseDir: str,translate: {}, \
|
||||||
votesFilename= \
|
votesFilename= \
|
||||||
baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt'
|
baseDir+'/accounts/'+nickname+'@'+domain+'/questions.txt'
|
||||||
|
|
||||||
|
showQuestion=True
|
||||||
|
if os.path.isfile(votesFilename):
|
||||||
if messageId not in open(votesFilename).read():
|
if messageId not in open(votesFilename).read():
|
||||||
|
showQuestion=False
|
||||||
|
|
||||||
|
if showQuestion:
|
||||||
# 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