X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=enhance_table.py;h=785e231a681b8f0862fa206eeaf1fc80c7c42faf;hp=8ac4fac55e7ac46b78d3a4f7b7abfd129b808e27;hb=27d911cf01028ff3e2fe9f87b453f3e34222adae;hpb=345f7bddfb30c582461ca5f9f4f94ae6922007cc diff --git a/enhance_table.py b/enhance_table.py index 8ac4fac..785e231 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -145,6 +145,7 @@ if output_type == 'html': 'transform: rotate(180deg);">%s' % long_form) print('') sorted_dates.reverse() + sum_district = sorted_districts[-1] for date in sorted_dates: print('') print('%s' % date) @@ -163,7 +164,10 @@ if output_type == 'html': week_inc = '%.1f' % district_data['week_incidence'] print('') print(new_infections) - print('
(more)') + if district == sum_district: + print('
') + else: + print('
') print('' % (long_wsum, week_sum)) print('' % (long_wavg, week_avg)) print('' % (long_winc, week_inc))
%s%s
%s%s
%s%s