ladybug-tools / spider-2020

Your 2020 3D happy place for online browsing of building data files
http://ladybug.tools/spider-2020/
MIT License
4 stars 1 forks source link

COVID-19 Statistics: Automatic parsing of /csse_covid_19_daily_reports/ #4

Closed paulmasson closed 4 years ago

paulmasson commented 4 years ago

@theo-armour since there's already a new file for 03-15-2020, how about automatic parsing of the data directory on load to find the latest?

Curious that they put the month first rather than the year. Then again, hopefully this won't be going on next year...

Also, you're declaring url twice, and without let. Shocking!

theo-armour commented 4 years ago

@paulmasson Just the lines I am looking at

theo-armour commented 4 years ago

@paulmasson

Date is now set by checking against UTC. But I think JHU creates a new file at some arbitrary time during the day. if so, wil have to add some error trapping fall back thing.

paulmasson commented 4 years ago

Just use GitHub API, sort results and use latest.

Sent from my iPhone

On Mar 15, 2020, at 7:42 PM, Theo Armour notifications@github.com wrote:

@paulmasson

Date is now set by checking against UTC. But I think JHU creates a new file at some arbitrary time during the day. if so, wil have to add some error trapping fall back thing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

theo-armour commented 4 years ago

@paulmasson

yep - a better idea

theo-armour commented 4 years ago

@paulmasson

Done