From: Christian Heller Date: Fri, 3 Jul 2020 20:15:25 +0000 (+0200) Subject: Horizontale "all of Berlin" header in HTML table. X-Git-Url: https://plomlompom.com/repos/condition?a=commitdiff_plain;h=e8850998bd3f831bf1291b0d5ea02d53cc7f2802;p=berlin-corona-table Horizontale "all of Berlin" header in HTML table. --- diff --git a/enhance_table.py b/enhance_table.py index a969895..66614c3 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -135,18 +135,21 @@ if output_type == 'html': print('') print('') print('') print('') + sorted_dates.reverse() + sum_district = sorted_districts[-1] for district in sorted_districts: long_form = translate[district] - print('' % long_form) + if sum_district == district: + print('' % long_form) + else: + print('' % long_form) print('') - sorted_dates.reverse() - sum_district = sorted_districts[-1] for date in sorted_dates: print('') print('' % date)
date%s%s%s
%s