X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=enhance_table.py;h=785e231a681b8f0862fa206eeaf1fc80c7c42faf;hp=bdf91e1654a28be8d6c33445362f2cd0aadf7a3f;hb=27d911cf01028ff3e2fe9f87b453f3e34222adae;hpb=76d923286b2178d07972ac6b4da6c8877362b479 diff --git a/enhance_table.py b/enhance_table.py index bdf91e1..785e231 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -134,6 +134,7 @@ if output_type == 'html': print('') print('') print('') print('') @@ -144,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('' % date) @@ -162,7 +164,10 @@ if output_type == 'html': week_inc = '%.1f' % district_data['week_incidence'] print('
%s') 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