disease-sh / API

API for Current cases and more stuff about COVID-19 and Influenza
https://disease.sh
GNU General Public License v3.0
2.46k stars 640 forks source link

[BUG] DPRK does not have an iso2 code in `v3/covid-19/countries` #1051

Closed bummoblizard closed 2 years ago

bummoblizard commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

{
    "updated": 1652812319488,
    "country": "DPRK",
    "countryInfo": {
        "_id": null,
        "iso2": null,
        "iso3": null,
        "lat": 0,
        "long": 0,
        "flag": "https://disease.sh/assets/img/flags/unknown.png"
    },
    "cases": 1213550,
    "todayCases": 392930,
    "deaths": 50,
    "todayDeaths": 8,
    "recovered": 648630,
    "todayRecovered": 152602,
    "active": 564870,
    "critical": 0,
    "casesPerOneMillion": 46693,
    "deathsPerOneMillion": 2,
    "tests": 0,
    "testsPerOneMillion": 0,
    "population": 25989838,
    "continent": "Asia",
    "oneCasePerPeople": 21,
    "oneDeathPerPeople": 519797,
    "oneTestPerPeople": 0,
    "activePerOneMillion": 21734.26,
    "recoveredPerOneMillion": 24957.06,
    "criticalPerOneMillion": 0
}
ebwinters commented 2 years ago

1052 fixes this

ebwinters commented 2 years ago

@bummoblizard let me know if this is fixed for you with the latest payload. looked good on my end when testing

bummoblizard commented 2 years ago

@bummoblizard let me know if this is fixed for you with the latest payload. looked good on my end when testing

Thanks for fixing this. Maybe it's the caching but I'm still seeing null values on https://disease.sh/v3/covid-19/countries. I will test it again later.

bummoblizard commented 2 years ago

It works now. Thanks again @ebwinters :)