Closed mileswwatkins closed 6 years ago
Bringing this back b/c of AK-House
Updated the code so that independent winners in the House go to the D side of the bar, which should cover us for the AK case if that goes that way. Will need to verify footnote language (and when it should be deployed) w/ Arnie.
Doesn't solve the problem entirely (what if there's a major third-party GOP-friendly candidate next time around?), but maybe addresses it for now.
Very good catch. The AP API lists her party as Udl
, even though she won the Democratic nomination later on.
Another option would be to override her party value to Dem
; maybe that would be editorially clearer?
I'll also need to update the BoP/chamber-calling logic to handle this individual, if we don't hard-code her to Dem
.
It looks like we could insert a party override via Peewee/SQL, right before finishing results-load:
https://github.com/nprapps/elections18-general/blob/master/fabfile/data.py#L153-L156
No footnote needed, and Galvin will now be treated like a Democrat, so we're all clear here.
Essentially unlikely to happen though