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=a969895164f6a316123e1692d32762248533c15c;hpb=3d86d1e29c61ed5b04c334bfe080a0f661047734;p=berlin-corona-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('
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)