From: Christian Heller Date: Fri, 3 Jul 2020 23:49:50 +0000 (+0200) Subject: Remove redundant sum_district assignments. X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=commitdiff_plain;h=f13581e13f5e699a54dc3d7b48efffbd149e1966;p=berlin-corona-table Remove redundant sum_district assignments. --- diff --git a/enhance_table.py b/enhance_table.py index 7da699d..2410099 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -150,7 +150,6 @@ th { text-align: left; vertical-align: bottom; } """) sorted_dates.reverse() - sum_district = sorted_districts[-1] for district in sorted_districts: long_form = translate[district] # Wrap in div because the vertical orientation otherwise fails @@ -217,7 +216,6 @@ HTML view: https://plomlompom.com/berlin_corona.html # separated into 7-day units. sorted_dates.reverse() weekday_count = 0 - sum_district = sorted_districts[-1] for date in sorted_dates: # Week table header.