From 7438d647e1fbccee8c2c751d3e4567778bbc5672 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 27 Dec 2020 20:39:32 +0000 Subject: [PATCH] Avoid function name confusion --- webapp_column_right.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp_column_right.py b/webapp_column_right.py index 96b0a9759..319a5eb02 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -187,13 +187,13 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, return htmlStr -def getBrokenFavSubstitute() -> str: +def _getBrokenFavSubstitute() -> str: """Substitute link used if a favicon is not available """ return " onerror=\"this.onerror=null; this.style='width:0%'; this.src=''\"" -def getFavicon(url: str) -> str: +def getNewswireFavicon(url: str) -> str: """Returns a favicon url from the given article link """ if '://' not in url: @@ -232,12 +232,12 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, dateStrLink = dateStr.replace('T', ' ') dateStrLink = dateStrLink.replace('Z', '') url = item[1] - faviconUrl = getFavicon(url) + faviconUrl = getNewswireFavicon(url) faviconLink = '' if faviconUrl: faviconLink = \ '' + _getBrokenFavSubstitute() + '/>' moderatedItem = item[5] htmlStr += separatorStr if moderatedItem and 'vote:' + nickname in item[2]: