mathdroid/covid-19-api

Why the totalRecovered response in /daily always 0

dytra opened this issue · 2 comments

dytra commented

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

The totalRecovered data always 0

dytra commented

up

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