forked from indymedia/epicyon
Check that questions file exists
parent
079095341a
commit
9fc251c11f
|
@ -194,10 +194,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.baseDir+'/accounts/'+ \
|
self.server.baseDir+'/accounts/'+ \
|
||||||
nickname+'@'+self.server.domain+'/questions.txt'
|
nickname+'@'+self.server.domain+'/questions.txt'
|
||||||
|
|
||||||
# have we already voted on this?
|
if os.path.isfile(votesFilename):
|
||||||
if messageId in open(votesFilename).read():
|
# have we already voted on this?
|
||||||
print('Already voted on message '+messageId)
|
if messageId in open(votesFilename).read():
|
||||||
return
|
print('Already voted on message '+messageId)
|
||||||
|
return
|
||||||
|
|
||||||
print('Voting on message '+messageId)
|
print('Voting on message '+messageId)
|
||||||
print('Vote for: '+answer)
|
print('Vote for: '+answer)
|
||||||
|
|
Loading…
Reference in New Issue