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:
27d911c
)
Fix week delimit highlight spilling over into details tables.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:07:06 +0000
(22:07 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 3 Jul 2020 20:07:06 +0000
(22:07 +0200)
enhance_table.py
patch
|
blob
|
history
diff --git
a/enhance_table.py
b/enhance_table.py
index 785e231a681b8f0862fa206eeaf1fc80c7c42faf..5c22f8d8a239cb90a6905654c2a19073dd18561a 100755
(executable)
--- a/
enhance_table.py
+++ b/
enhance_table.py
@@
-134,7
+134,7
@@
if output_type == 'html':
print('<html>')
print('<style>')
print('table, tr, th, td { border: 1px solid black; }')
print('<html>')
print('<style>')
print('table, tr, th, td { border: 1px solid black; }')
- print('
tr:nth-child(7n+2) td
{ background-color: yellow; }')
+ print('
.day_row:nth-child(7n+2)
{ background-color: yellow; }')
print('</style>')
print('<table>')
print('<tr>')
print('</style>')
print('<table>')
print('<tr>')
@@
-147,7
+147,7
@@
if output_type == 'html':
sorted_dates.reverse()
sum_district = sorted_districts[-1]
for date in sorted_dates:
sorted_dates.reverse()
sum_district = sorted_districts[-1]
for date in sorted_dates:
- print('<tr>')
+ print('<tr
class="day_row"
>')
print('<td>%s</td>' % date)
long_wsum = translate['wsum']
long_wavg = translate['wavg']
print('<td>%s</td>' % date)
long_wsum = translate['wsum']
long_wavg = translate['wavg']