mathdroid / covid-19-api

COVID-19 global data (from JHU CSSE for now) as-a-service
https://covid19.mathdro.id
1.36k stars 283 forks source link

Wrong Values for Confirmed Cases #152

Closed bilafish closed 4 years ago

bilafish commented 4 years ago

Hi, there seems to be an issue with the values returned for confirmed cases. This affects the following API endpoints (mainly time-series data):

  1. https://covid19.mathdro.id/api/daily/4-13-2020 - Total summed confirmed cases = 2,019,320
  2. https://covid19.mathdro.id/api/daily - Total confirmed cases on 13 Apr = 2,701,542

As of current writing (14 Apr), the total global confirmed cases is 1,918,855.

It seems to be related to an issue as reported on the data source here: https://github.com/CSSEGISandData/COVID-19/issues/2167. They have since modified the affected csv files:

k1m0ch1 commented 4 years ago

I just tested this bug, I think the problem one from us is the /daily route the route /daily/<date> already fine.

here is how I reproduce this bug https://repl.it/@k1m0ch1/ImmenseElementaryGenre

image

k1m0ch1 commented 4 years ago

fixed in https://github.com/mathdroid/covid-19-api/commit/1c523f543849f0bfa8f3055751ec83d07d5f8005