rrelyea / evusheld

Evusheld locator site using healthdata.gov data
Apache License 2.0
2 stars 1 forks source link

Ensure trailing newline in state-health-departments.csv can be handled in all apps #38

Open rrelyea opened 2 years ago

rrelyea commented 2 years ago

Less than an hour ago, I tried to add a new url for oklahoma. Because I edited that file on my phone with the web interface of github, it added a trailing newline.

Both evusheld and sotrovimab sites stopped working for 33 minutes, since they couldn't handle a blank line. Both sites appeared blank.

Make the sites handle this better, to avoid this kind of mistake again.

Broke file with: https://github.com/rrelyea/evusheld-locations-history/commit/f9bc8c303c760409556b5f9f9fcaf0caa2666c20#diff-b10e7332fb2a151270c5e566023202aefd70f3093a6724388e6e696adbd6fdaa Fixed file with: https://github.com/rrelyea/evusheld-locations-history/commit/9f640fdfa628a45ad2adc90e91a2876d65964564#diff-b10e7332fb2a151270c5e566023202aefd70f3093a6724388e6e696adbd6fdaa