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

House results: Is there a way to filter out or label special elections when we're showing a long list of House results? #158

Open
alykat opened this issue Mar 20, 2024 · 1 comment
Labels
bug Something isn't working Priority: Normal

Comments

@alykat
Copy link
Member

alykat commented Mar 20, 2024

Getting this for Ohio District 6. Two of these are Special Primaries, according to the API response.

image

From the API response for one of the specials:

            "eventID": "20240319",
            "stateID": "36",
            "test": false,
            "resultsType": "live",
            "raceID": "82157",
            "raceType": "Special Primary",
            "raceTypeID": "J",
            "tabulationStatus": "Active Tabulation",
            "raceCallStatus": "Called",
            "officeID": "H",
            "officeName": "U.S. House",
            "party": "Dem",
            "eevp": 82.87,
            "national": true,
            "seatName": "District 6 Unexpired Term",
            "seatNum": "6",

API response for one of the primaries:

            "eventID": "20240319",
            "stateID": "36",
            "test": false,
            "resultsType": "live",
            "raceID": "36578",
            "raceType": "Primary",
            "raceTypeID": "D",
            "tabulationStatus": "Active Tabulation",
            "raceCallStatus": "Called",
            "officeID": "H",
            "officeName": "U.S. House",
            "party": "Dem",
            "eevp": 88.5,
            "national": true,
            "seatName": "District 6",
            "seatNum": "6",

One way to disambiguate would be manually-added footnotes (#157). Automatic labeling would be helpful, too, and avoid the need for manual intervention / someone having to notice the need for it. Yay, edge cases.

@alykat alykat added Priority: Normal bug Something isn't working labels Mar 20, 2024
@alykat
Copy link
Member Author

alykat commented Jun 26, 2024

Ran into this for the 6/25 primaries in Colorado, where there were both Dem/GOP primaries and a special election for district 4.

https://apps.npr.org/primary-election-results-2024/states/CO.html#date=6/25/2024&office=H

I ended up setting the config like this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Normal
Projects
None yet
Development

No branches or pull requests

1 participant