From 51fbacd691fae8c9510093a3ce00e63a2f1f034f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 3 Dec 2020 12:19:57 +0000 Subject: [PATCH] Remove duplicate variable --- webapp_headerbuttons.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py index 2b138f5b9..ae987be95 100644 --- a/webapp_headerbuttons.py +++ b/webapp_headerbuttons.py @@ -114,14 +114,11 @@ def headerButtonsTimeline(defaultTimeline: str, inboxButton+'">' + translate['Inbox'] + \ '' - isFeaturesTimeline = \ - defaultTimeline == 'tlfeatures' and boxName == 'tlfeatures' - - if not isFeaturesTimeline: + if not featuresHeader: # typically the blogs button # but may change if this is a blogging oriented instance if defaultTimeline != 'tlblogs': - if not minimal and not isFeaturesTimeline: + if not minimal: titleStr = translate['Blogs'] if defaultTimeline == 'tlfeatures': titleStr = translate['Article'] @@ -233,7 +230,7 @@ def headerButtonsTimeline(defaultTimeline: str, print('TIMELINE TIMING ' + boxName + ' 5 = ' + str(timeDiff)) # the calendar button - if not isFeaturesTimeline: + if not featuresHeader: calendarAltText = translate['Calendar'] if newCalendarEvent: # indicate that the calendar icon is highlighted