X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=785e231a681b8f0862fa206eeaf1fc80c7c42faf;hb=27d911cf01028ff3e2fe9f87b453f3e34222adae;hp=bdf91e1654a28be8d6c33445362f2cd0aadf7a3f;hpb=76d923286b2178d07972ac6b4da6c8877362b479;p=berlin-corona-table
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('%s | ' % date)
@@ -162,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('%s | %s | ' % (long_wsum, week_sum))
print('%s | %s | ' % (long_wavg, week_avg))
print('%s | %s | ' % (long_winc, week_inc))
|