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