bjacobel / cabinet

How Senators voted on Trump's cabinet
https://cabinetvotes.org
MIT License
4 stars 0 forks source link

Adjustments to allow for the replacement of Sessions with Strange #23

Closed bjacobel closed 7 years ago

bjacobel commented 7 years ago

All of Sessions' old votes + the lack of new ones for Strange were going to make things blow up the first time he voted on something. (due to me building the data model in a very dumb way)

Now we have three data models:

Also the voteTotals, which haven't changed.

Side note, this makes it easier to migrate to the ProPublica API, because we weren't previously doing a separate API call for senator bio information (just relying on the fact that GovTrack returns it in the vote data) and ProPublica requires that.