Instead of the formatted state name (i.e. Alaska (EV: 3)), we should use the unformatted state name (i.e. Alaska) as the dictionary key, and then explicitly use the formatted state name when generating output files.
The CSV technically shouldn't have been using the formatted name, but in the interests of backwards-compatibility, I've kept the existing behaviour. However, this means we cannot change the formatted name without breaking backwards-compatibility - unless we add a formatted name for the CSV that's separate from the one used in the HTML.
Changes
This pull request should not change the output files at all.
[x] Ensured that you have rebased your branch with this repo's latest master branch.
[x] Ensured that relevant issues are linked, if this PR resolves any outstanding.
[x] Added a screenshot for all UI changes (you can drag the file into this edit box and it will be uploaded).
[x] Ensured that changes to auto-generated files have not been committed; in particular, *.html, *.csv, *.xml and *.json files.
Motivation
Instead of the formatted state name (i.e.
Alaska (EV: 3)
), we should use the unformatted state name (i.e.Alaska
) as the dictionary key, and then explicitly use the formatted state name when generating output files.The CSV technically shouldn't have been using the formatted name, but in the interests of backwards-compatibility, I've kept the existing behaviour. However, this means we cannot change the formatted name without breaking backwards-compatibility - unless we add a formatted name for the CSV that's separate from the one used in the HTML.
Changes
This pull request should not change the output files at all.
*.html
,*.csv
,*.xml
and*.json
files.