API response missing fields for 'vote' objects on bill id CAB00019905?

10 views
Skip to first unread message

Brendan McCollam

unread,
Mar 30, 2017, 2:47:07 PM3/30/17
to Open States
Hello,

I'm fetching a bunch of bills using the Pyopenstates API client. I'm requesting the 'votes' field in order to determine the status of the bills (which houses they've passed) but I'm getting an error for CAB00019905 (CA SB 54).

The 'vote' objects for that bill seem to be extremely sparse, missing the 'type', and 'passed' fields:

>>> bill['id']
'CAB00019905'

>>> bill['votes']
[{'id': 'CAV00138283'}, {'id': 'CAV00138419'}, {'id': 'CAV00138420'}]


Is there anything that can be done about this? Or is this just a data inconsistency I'll need to work around in application code?

Thanks,
Brendan
Reply all
Reply to author
Forward
0 new messages