X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/task?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=66614c36433a9e64422fe1768ee11ef217624fde;hb=e8850998bd3f831bf1291b0d5ea02d53cc7f2802;hp=785e231a681b8f0862fa206eeaf1fc80c7c42faf;hpb=27d911cf01028ff3e2fe9f87b453f3e34222adae;p=berlin-corona-table diff --git a/enhance_table.py b/enhance_table.py index 785e231..66614c3 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -134,20 +134,24 @@ if output_type == 'html': print('') print('') print('
date | ') + sorted_dates.reverse() + sum_district = sorted_districts[-1] for district in sorted_districts: long_form = translate[district] - print('%s | ' % long_form) + if sum_district == district: + print('%s | ' % long_form) + else: + print('%s | ' % long_form) print('
---|---|---|---|
%s | ' % date) long_wsum = translate['wsum'] long_wavg = translate['wavg']