X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/calendar?a=blobdiff_plain;ds=sidebyside;f=enhance_table.py;h=70a9501cab411936b5644c53a5906b4975bdc32e;hb=a0908b9bfc9d12ab7b87af794045ebe361a9702f;hp=785e231a681b8f0862fa206eeaf1fc80c7c42faf;hpb=27d911cf01028ff3e2fe9f87b453f3e34222adae;p=berlin-corona-table
diff --git a/enhance_table.py b/enhance_table.py
index 785e231..70a9501 100755
--- a/enhance_table.py
+++ b/enhance_table.py
@@ -131,23 +131,26 @@ for i in range(len(sorted_dates)):
# Optimized for web browser viewing.
if output_type == 'html':
- print('')
- print('')
- print('
')
- print('')
- print('date | ')
+ 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()
- sum_district = sorted_districts[-1]
for date in sorted_dates:
- print('')
+ print('
')
print('%s | ' % date)
long_wsum = translate['wsum']
long_wavg = translate['wavg']