Fix warnings

main
Bob Mottram 2021-11-11 15:12:14 +00:00
parent 9046a8c1e3
commit 106888efee
1 changed files with 2 additions and 3 deletions

View File

@ -706,7 +706,7 @@ def _getReactionIconHtml(nickname: str, domainFull: str,
enableTimingLog: bool, enableTimingLog: bool,
postStartTime, boxName: str, postStartTime, boxName: str,
pageNumberParam: str, pageNumberParam: str,
timelinePostBookmark: str) -> str: timelinePostReaction: str) -> str:
"""Returns html for reaction icon/button """Returns html for reaction icon/button
""" """
reactionStr = '' reactionStr = ''
@ -715,7 +715,6 @@ def _getReactionIconHtml(nickname: str, domainFull: str,
return reactionStr return reactionStr
reactionIcon = 'reaction.png' reactionIcon = 'reaction.png'
reactionLink = 'reactpick'
reactionTitle = 'Select reaction' reactionTitle = 'Select reaction'
if translate.get(reactionTitle): if translate.get(reactionTitle):
reactionTitle = translate[reactionTitle] reactionTitle = translate[reactionTitle]
@ -730,7 +729,7 @@ def _getReactionIconHtml(nickname: str, domainFull: str,
reactionStr += \ reactionStr += \
' ' + \ ' ' + \
'<img loading="lazy" title="' + reactionTitle + '" alt="' + \ '<img loading="lazy" title="' + reactionTitle + '" alt="' + \
reactionEmoji + reactionTitle + ' |" src="/icons' + \ reactionTitle + ' |" src="/icons' + \
'/' + reactionIcon + '"/></a>\n' '/' + reactionIcon + '"/></a>\n'
return reactionStr return reactionStr