home
·
contact
·
privacy
projects
/
berlin-corona-table
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fb8fb7
)
Remove "all of Berlin" column collapsibility.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:25:45 +0000
(22:25 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:25:45 +0000
(22:25 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 03382554e2dbfc538aca8107777ed15ee789546c..105e1d52a6c1833ca9c8bb55fed8ed74db9e1289 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-170,14
+170,15
@@
table, tr, th, td { border: 1px solid black; }
week_inc = '%.1f' % district_data['week_incidence']
print('<td>')
print(new_infections)
week_inc = '%.1f' % district_data['week_incidence']
print('<td>')
print(new_infections)
- if district == sum_district:
- print('<details open><summary></summary><table>')
- else:
- print('<details><summary></summary><table>')
+ if district != sum_district:
+ print('<details><summary></summary>')
+ print('<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))
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))
- print('</table></details>')
+ print('</table>')
+ if district != sum_district:
+ print('</details>')
print('</td>')
print('</tr>')
print('</table>')
print('</td>')
print('</tr>')
print('</table>')