nat236919 / covid19-api

API for exploring COVID-19 cases around the globe
https://nuttaphat.com/covid19-api/
MIT License
119 stars 63 forks source link

Recovered endpoint returns always 0 #296

Closed spacecowb0y closed 7 months ago

spacecowb0y commented 2 years ago

Describe the bug There must be something wrong with the /recovered endpoint, it always returns 0.

github-actions[bot] commented 2 years ago

Thank you for your contribution!!' first issue

nat236919 commented 2 years ago

@spacecowb0y Thank you for raising this issue.

I think it is because the source data discontinued providing Recovered and Active according to this issue https://github.com/CSSEGISandData/COVID-19/issues/4465

spacecowb0y commented 2 years ago

Ouch, the issue seems bigger than I expected and isn't technical :/

nat236919 commented 2 years ago

Yeah, sorry about that. I think what we can do now is to ignore Recovered completely.

However, if Active is required, we can calculate roughly as

active = (confirmed - death) - *recovered *assume it will be zero

spacecowb0y commented 2 years ago

I think pointing this issue anywhere on the Readme and depreciating the endpoint (maybe?) is good enough.