From 3c85280ecc0bcce7521e4335fd5220a2061b78b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 15:34:02 +0100 Subject: [PATCH] Pass icons directory as argument --- webinterface.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 727201ea7..ea2dfd325 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5383,10 +5383,9 @@ def votesIndicator(totalVotes: int, positiveVoting: bool) -> str: def htmlNewswire(newswire: str, nickname: str, moderator: bool, - translate: {}, positiveVoting: bool) -> str: + translate: {}, positiveVoting: bool, iconsDir: str) -> str: """Converts a newswire dict into html """ - iconsDir = getIconsDir(baseDir) htmlStr = '' for dateStr, item in newswire.items(): dateStrLink = dateStr.replace(' ', 'T') @@ -5523,7 +5522,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, htmlStr += '
\n' htmlStr += htmlNewswire(newswire, nickname, moderator, translate, - positiveVoting) + positiveVoting, iconsDir) return htmlStr