X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=5c22f8d8a239cb90a6905654c2a19073dd18561a;hb=7092323db330f42fccccc17b7c2f36d8976b3756;hp=0b30d216f5105d66391251659427caa7903f316a;hpb=049ba1c6850f9344523f8efd46c837a6c15263ee;p=berlin-corona-table
diff --git a/enhance_table.py b/enhance_table.py
index 0b30d21..5c22f8d 100755
--- a/enhance_table.py
+++ b/enhance_table.py
@@ -134,7 +134,7 @@ if output_type == 'html':
print('')
print('')
print('
')
print('')
@@ -145,8 +145,9 @@ 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('
')
print('%s | ' % date)
long_wsum = translate['wsum']
long_wavg = translate['wavg']
@@ -163,7 +164,10 @@ if output_type == 'html':
week_inc = '%.1f' % district_data['week_incidence']
print('')
print(new_infections)
- print('
')
+ 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))
|