X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=enhance_table.py;h=a969895164f6a316123e1692d32762248533c15c;hp=bdf91e1654a28be8d6c33445362f2cd0aadf7a3f;hb=3d86d1e29c61ed5b04c334bfe080a0f661047734;hpb=76d923286b2178d07972ac6b4da6c8877362b479
diff --git a/enhance_table.py b/enhance_table.py
index bdf91e1..a969895 100755
--- a/enhance_table.py
+++ b/enhance_table.py
@@ -134,18 +134,21 @@ if output_type == 'html':
print('')
print('')
print('
')
print('')
print('date | ')
for district in sorted_districts:
long_form = translate[district]
- print('%s | ' % long_form)
+ print('' % long_form)
print('
')
sorted_dates.reverse()
+ sum_district = sorted_districts[-1]
for date in sorted_dates:
- print('')
+ print('
')
print('%s | ' % date)
long_wsum = translate['wsum']
long_wavg = translate['wavg']
@@ -162,7 +165,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))
|