Compare commits

...

2 Commits

Author SHA1 Message Date
05256599f3 more convenient rsync command 2022-02-11 01:39:27 -08:00
cba73cd4e7 added winter olympics 2022 and antarctica to country map 2022-02-11 01:39:17 -08:00
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,7 @@ const lastUpdate = new Date(lastGlobalDeathsUpdate > lastUSDeathsUpdate ?
);
const zeroPad = value => value < 10 ? `0${value}` : value.toString();
const toSafeName = x => x.replace(/[^A-Za-z]/g, '-').toLowerCase();
const toSafeName = x => x.replace(/[^A-Za-z0-9]/g, '-').toLowerCase();
const processRecords = async () => {
const globalStart = Date.now();
@ -178,6 +178,8 @@ const processRecords = async () => {
countryPopulationMap['Diamond Princess'] = statePopulationMap['Diamond Princess'] = 3711;
countryPopulationMap['MS Zaandam'] = 1829;
countryPopulationMap['Kosovo'] = 1810463;
countryPopulationMap['Antarctica'] = 3250; // https://worldpopulationreview.com/continents/antarctica-population
countryPopulationMap['Winter Olympics 2022'] = 2900;
statePopulationMap['Grand Princess'] = 3533;
if (statePopulationMap['Puerto Rico Commonwealth']) {
statePopulationMap['Puerto Rico'] = statePopulationMap['Puerto Rico Commonwealth'];

View File

@ -24,6 +24,6 @@ rm -rf ./public/
./generate.js
rsync -vaz -e "ssh -i /home/tmont/.ssh/nuc-main" ./public/ tmont@tmont.com:/var/www/sites/covid19.tmont.com/live/
rsync -vaz ./public/ covid19:/var/www/sites/covid19.tmont.com/live/
echo