forked from indymedia/epicyon
Indexes
parent
15f2873829
commit
396556f6e9
10
daemon.py
10
daemon.py
|
@ -5589,9 +5589,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if newswire.get(dateStr):
|
if newswire.get(dateStr):
|
||||||
if isModerator(baseDir, nickname):
|
if isModerator(baseDir, nickname):
|
||||||
print('Voting on newswire item: ' + str(newswire[dateStr]))
|
print('Voting on newswire item: ' + str(newswire[dateStr]))
|
||||||
if 'vote:' + nickname not in newswire[dateStr][2]:
|
votesIndex = 2
|
||||||
newswire[dateStr][2].append('vote:' + nickname)
|
filenameIndex = 3
|
||||||
filename = newswire[dateStr][3]
|
if 'vote:' + nickname not in newswire[dateStr][votesIndex]:
|
||||||
|
newswire[dateStr][votesIndex].append('vote:' + nickname)
|
||||||
|
filename = newswire[dateStr][filenameIndex]
|
||||||
newswireStateFilename = \
|
newswireStateFilename = \
|
||||||
baseDir + '/accounts/.newswirestate.json'
|
baseDir + '/accounts/.newswirestate.json'
|
||||||
try:
|
try:
|
||||||
|
@ -5599,7 +5601,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('ERROR saving newswire state, ' + str(e))
|
print('ERROR saving newswire state, ' + str(e))
|
||||||
if filename:
|
if filename:
|
||||||
saveJson(newswire[dateStr][2],
|
saveJson(newswire[dateStr][votesIndex],
|
||||||
filename + '.votes')
|
filename + '.votes')
|
||||||
|
|
||||||
originPathStrAbsolute = \
|
originPathStrAbsolute = \
|
||||||
|
|
Loading…
Reference in New Issue