covid-19-api icon indicating copy to clipboard operation
covid-19-api copied to clipboard

Why the totalRecovered response in /daily always 0

Open dytra opened this issue 5 years ago • 2 comments

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

The totalRecovered data always 0

dytra avatar Jul 28 '20 11:07 dytra

up

dytra avatar Aug 04 '20 03:08 dytra

@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.

zeotuan avatar Jul 17 '21 10:07 zeotuan