home
·
contact
·
privacy
projects
/
berlin-corona-table
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use long form district names in HTML variant.
[berlin-corona-table]
/
enhance_table.py
diff --git
a/enhance_table.py
b/enhance_table.py
index 0482bdfbffbf8fe0e89bb174454b04f561318a92..acbebc6b950905cab22a247a42010b69a15c166a 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-136,7
+136,9
@@
if output_type == 'html':
print('<tr>')
print('<th>date</th>')
for district in sorted_districts:
print('<tr>')
print('<th>date</th>')
for district in sorted_districts:
- print('<th>%s</th>' % district)
+ long_form = translate[district]
+ print('<th style="writing-mode: vertical-rl; '
+ 'transform: rotate(180deg);">%s</th>' % long_form)
print('</tr>')
sorted_dates.reverse()
for date in sorted_dates:
print('</tr>')
sorted_dates.reverse()
for date in sorted_dates: