opencivicdata / docs.opencivicdata.org

Open Civic Data project documentation
https://open-civic-data.readthedocs.io
44 stars 33 forks source link

VoteEvent: Add `requirement` attribute #55

Open jamesturk opened 8 years ago

jamesturk commented 8 years ago

Different kinds of votes in different legislatures require different percentages of support to pass. Seems like important information to store about a vote - more important than shoving it into extra attributes. The @opencongress congress scrapers include this attribute in votes as you can see in the following example.

{
  "requires": "1/2", 
  "result": "Failed", 
  "result_text": "Failed"
}

The result_text may also be relevant too since we're storing passing as a boolean value instead of the actual text specific to the vote type. This may make more sense though to push to extra attributes.

via @crdunwel https://github.com/opencivicdata/python-opencivicdata-django/issues/38

jpmckinney commented 8 years ago

The Motion class in Popolo has a requirement field: http://www.popoloproject.com/specs/motion.html