Displaying votes on newswire

main
Bob Mottram 2020-10-08 17:39:30 +01:00
parent f3432d96f7
commit 68758e95f5
1 changed files with 6 additions and 1 deletions

View File

@ -5384,7 +5384,12 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
if 'vote:' in line:
totalVotes += 1
if totalVotes > 0:
totalVotesStr = ' +' + str(totalVotes)
totalVotesStr = ' '
for v in range(totalVotes):
if positiveVoting:
totalVotesStr += ''
else:
totalVotesStr += ''
htmlStr += '<p class="newswireItemApproved">' + \
'<a href="' + item[1] + '">' + item[0] + '</a>' + \