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