ExpDev07 / coronavirus-tracker-api

🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
https://coronavirus-tracker-api.herokuapp.com
GNU General Public License v3.0
1.59k stars 320 forks source link

Integrity checks #20

Open Bost opened 4 years ago

Bost commented 4 years ago

The JHU CSSE screw it up again so I guess we need to implement some integrity check against broken input.

Bost commented 4 years ago

https://github.com/CSSEGISandData/COVID-19/issues/238#issuecomment-595743380

ExpDev07 commented 4 years ago

Just noticed it. Gonna try to work on a fix now ASAP before there's angry people here :). Why can't they just stick to one format.

Bost commented 4 years ago

They claim they fixed it already so I guess you just need to empty the cache. AFAIR time-to-live is 1 hour right? :)

ExpDev07 commented 4 years ago

Gonna go restart the server.

ExpDev07 commented 4 years ago

Seems to be fixed, but probably wouldn't be a bad idea to make it more robust in case of unexpected errors such as this 👍 . @BostX

Bost commented 4 years ago

It works now. Thx.