added winter olympics 2022 and antarctica to country map

This commit is contained in:
tmont 2022-02-11 01:39:17 -08:00
parent 5f93c5997e
commit cba73cd4e7

View File

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