mathdroid / covid-19-api

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

Why the totalRecovered response in /daily always 0 #262

Open dytra opened 4 years ago

dytra commented 4 years ago

In endpoint https://covid19.mathdro.id/api/daily

The totalRecovered data always 0

dytra commented 4 years ago

up

zeotuan commented 3 years ago

@dytra might be late but after a bit of investigation, i found out that the code is querying static json data which hasn't been updated for a while. I believe his was done in order to speed up the api. There exist a script in /scripts/scrape-cumulative-daily.js which will query each day and create said static json.