daniel-kelley / ca-r

California Coved-19 webapp builder
MIT License
0 stars 0 forks source link

Fix incorrect population data #14

Closed daniel-kelley closed 3 years ago

daniel-kelley commented 3 years ago

"Blueprint For A Safer Economy" CSV columns have changed incompatibly since initial development. CSV parsing and data extraction is made (hopefully) more robust against CSV format changes.

lib/ca-r/app-data.rb

Add get_tier_value so missing tier keys can be checked

lib/ca-r/ca-tier.rb

Add CSV header debugging code and reconstruct CSV header so that it can be parsed by the CSV library and used to facilitate column data extraction.

Column data is now extracted by partial matching of header strings.