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
Output both .txt and .html variants.
[berlin-corona-table]
/
update.sh
diff --git
a/update.sh
b/update.sh
index f1b74677156a796631ca10086f2ec2ff87378ca5..27a9dd1fe476f16009fb0d94f0af5fa62eeccc86 100755
(executable)
--- a/
update.sh
+++ b/
update.sh
@@
-2,7
+2,7
@@
set -e
CSV_URL=https://www.berlin.de/lageso/_assets/gesundheit/publikationen/corona/bezirkstabelle.csv
set -e
CSV_URL=https://www.berlin.de/lageso/_assets/gesundheit/publikationen/corona/bezirkstabelle.csv
-table_path=
/home/plom/berlin-corona-table/
daily_infections_table.txt
+table_path=daily_infections_table.txt
# If we don't have a table file yet, we need to provide its header.
header=" CW FK Li MH Mi Ne Pa Re Sp SZ TS TK sum"
# If we don't have a table file yet, we need to provide its header.
header=" CW FK Li MH Mi Ne Pa Re Sp SZ TS TK sum"
@@
-18,4
+18,5
@@
curl "${CSV_URL}" \
'END { printf "\n" }' "${filename}" >> "${table_path}"
# Write enhanced table output to directory served by web server.
'END { printf "\n" }' "${filename}" >> "${table_path}"
# Write enhanced table output to directory served by web server.
-./enhance_table.py > /var/www/html/berlin_corona.txt
+./enhance_table.py "${table_path}" txt > /var/www/html/berlin_corona.txt
+./enhance_table.py "${table_path}" html > /var/www/html/berlin_corona.html