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 639 forks source link

[BUG] Full vaccine data per country is showing 0 #1008

Closed maltejur closed 3 years ago

maltejur commented 3 years ago

Describe the bug

The fields daily, totalPerHundred and dailyPerMillion all have a value of 0 on the vaccine/coverage/countries?fullData=true Endpoint.

To Reproduce Visit https://disease.sh/v3/covid-19/vaccine/coverage/countries?lastdays=1&fullData=true

Expected behavior I expect to see daily cases, cases per hundred and daily cases per million in the respective fields.

Screenshots

{
    "country": "Afghanistan",
    "timeline": [
      {
        "total": 504502,
        "daily": 0,
        "totalPerHundred": 0,
        "dailyPerMillion": 0,
        "date": "5/18/21"
      }
    ]
  },
  {
    "country": "Albania",
    "timeline": [
      {
        "total": 680083,
        "daily": 0,
        "totalPerHundred": 0,
        "dailyPerMillion": 0,
        "date": "5/18/21"
      }
    ]
  },

Additional context I need this because I would like to use relative numbers on the website.

ebwinters commented 3 years ago

@chcald can you take a look at this? It seems like maybe a bug but only the prior day doesn't have full data

image
nibble0101 commented 3 years ago

@maltejur and @ebwinters I don't think it is a bug. The only thing we try to calculate is the total from daily if there are missing values. The rest are left as reported by the source. If reported as 0 then the source is missing those values. You can check here.

ebwinters commented 3 years ago

@nibble0101 good catch. Closing the issue, thanks