From e8850998bd3f831bf1291b0d5ea02d53cc7f2802 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 3 Jul 2020 22:15:25 +0200 Subject: [PATCH] Horizontale "all of Berlin" header in HTML table. --- enhance_table.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) -- 2.30.2
date%s%s%s
%s