mirror of https://gitlab.com/bashrc2/epicyon
Avoid lookups if not needed
parent
d60aad0659
commit
19a420f758
|
@ -5419,11 +5419,12 @@ def htmlNewswire(newswire: str, nickname: str, moderator: bool,
|
||||||
moderatedItem = False
|
moderatedItem = False
|
||||||
if moderator:
|
if moderator:
|
||||||
moderatedItem = item[5]
|
moderatedItem = item[5]
|
||||||
totalVotes = votesOnNewswireItem(item[2])
|
if moderatedItem:
|
||||||
# show a number of ticks or crosses for how many
|
totalVotes = votesOnNewswireItem(item[2])
|
||||||
# votes for or against
|
# show a number of ticks or crosses for how many
|
||||||
totalVotesStr = \
|
# votes for or against
|
||||||
votesIndicator(totalVotes, positiveVoting)
|
totalVotesStr = \
|
||||||
|
votesIndicator(totalVotes, positiveVoting)
|
||||||
|
|
||||||
if moderator and moderatedItem:
|
if moderator and moderatedItem:
|
||||||
htmlStr += '<p class="newswireItemModerated">' + \
|
htmlStr += '<p class="newswireItemModerated">' + \
|
||||||
|
|
Loading…
Reference in New Issue