Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capitalize State and County names in JSON #38

Open
fede2cr opened this issue Jun 26, 2020 · 4 comments
Open

Capitalize State and County names in JSON #38

fede2cr opened this issue Jun 26, 2020 · 4 comments

Comments

@fede2cr
Copy link
Contributor

fede2cr commented Jun 26, 2020

While writing the PyPortal code, the states appear in lowercase.

Can you please Capitalize them so they can show up nicely?

Thanks.

As an example, for any state voter.json they both show up as:

state: "arizona"

@askpatrickw
Copy link
Contributor

This is fixed by #39. Let me know if there's any issues with it, but I think you should good.

@fede2cr
Copy link
Contributor Author

fede2cr commented Jun 30, 2020

State comes up ok, but county comes up as null for both types of elections---> "county": null
Here's an example:

{"version": 0, "name": null, "description": null, "dates": [{"date": "2020-05-19", "name": "Congressional & Presidential Primary", "original_date": "2020-05-19", "state": "Oregon", "county": null, "key": "20200519", "type": "election"}, {"date": "2020-11-03", "name": "General (Presidential) Election", "original_date": "2020-11-03", "key": "20201103", "state": "Oregon", "county": null, "type": "election"}], "url": "https://electioncal.us/en/oregon/clatsop/", "source": "https://electioncal.us/en/oregon/clatsop/voter.json"}

@askpatrickw
Copy link
Contributor

Thanks @fede2cr , I'll look at this tonight. It might be we leave this as-is, because the Election is a Federal election which we're displaying in the County. Counties don't usually have their own rules, but I have found (TN) where the polling open times even for Federal Elections are defined by Counties and we might need to re-define Federal elections at the county level.

@tannewt did you have an existing strategy for this in your mind?

@askpatrickw askpatrickw reopened this Jun 30, 2020
@fede2cr
Copy link
Contributor Author

fede2cr commented Jun 30, 2020

In this cases, county is null for both elections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants