'transform: rotate(180deg);">%s</th>' % long_form)
print('</tr>')
sorted_dates.reverse()
+ sum_district = sorted_districts[-1]
for date in sorted_dates:
print('<tr>')
print('<td>%s</td>' % date)
week_inc = '%.1f' % district_data['week_incidence']
print('<td>')
print(new_infections)
- print('<details><summary></summary><table>')
+ if district == sum_district:
+ print('<details open><summary></summary><table>')
+ else:
+ print('<details><summary></summary><table>')
print('<tr><th>%s</th><td>%s</td></tr>' % (long_wsum, week_sum))
print('<tr><th>%s</th><td>%s</td></tr>' % (long_wavg, week_avg))
print('<tr><th>%s</th><td>%s</td></tr>' % (long_winc, week_inc))