From 982c7e556edd720fef2334e4c7eb7c65100e6001 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 Dec 2020 22:29:03 +0000 Subject: [PATCH] Don't show shares on front page --- webapp_column_left.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/webapp_column_left.py b/webapp_column_left.py index 7be6c1a0a..f6f7f3907 100644 --- a/webapp_column_left.py +++ b/webapp_column_left.py @@ -176,14 +176,15 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, with open(linksFilename, "r") as f: linksList = f.readlines() - # show a number of shares - maxSharesInLeftColumn = 3 - sharesList = \ - getLeftColumnShares(baseDir, - httpPrefix, domainFull, nickname, - maxSharesInLeftColumn, translate) - if linksList and sharesList: - linksList += sharesList + if not frontPage: + # show a number of shares + maxSharesInLeftColumn = 3 + sharesList = \ + getLeftColumnShares(baseDir, + httpPrefix, domainFull, nickname, + maxSharesInLeftColumn, translate) + if linksList and sharesList: + linksList += sharesList if linksList: for lineStr in linksList: