From 3f8f60515d7e0c3b3fe468ea9c67a47b09de5c5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 27 Dec 2020 20:41:29 +0000 Subject: [PATCH] Local function --- webapp_column_right.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_column_right.py b/webapp_column_right.py index 319a5eb02..88f0513e0 100644 --- a/webapp_column_right.py +++ b/webapp_column_right.py @@ -193,7 +193,7 @@ def _getBrokenFavSubstitute() -> str: return " onerror=\"this.onerror=null; this.style='width:0%'; this.src=''\"" -def getNewswireFavicon(url: str) -> str: +def _getNewswireFavicon(url: str) -> str: """Returns a favicon url from the given article link """ if '://' not in url: @@ -232,7 +232,7 @@ def _htmlNewswire(baseDir: str, newswire: {}, nickname: str, moderator: bool, dateStrLink = dateStr.replace('T', ' ') dateStrLink = dateStrLink.replace('Z', '') url = item[1] - faviconUrl = getNewswireFavicon(url) + faviconUrl = _getNewswireFavicon(url) faviconLink = '' if faviconUrl: faviconLink = \