VOTE
Translation of Professor Slade's VOTE system from Lisp to Python
Requirements
- Python 2.7
- pymongo >= 3.2
- MongoDB 3.0.7 (for Mac, just run 'brew install mongodb' in Terminal)
Running the code
- Open the Python 2 interpreter from the top level directory
- Run "from src.scripts.database import load_data"
- Run "load_data.load_data()"
- Run "from src.vote import vote"
- Run "vote.vote_all()" to see the outcome of all of the members voting on all bills
- Run "vote.vote('JORDAN', 'HR-4264')" to see what a specific member would vote on a specific bill.
- John Smith ("SMITH")
- Jane Jordan ("JORDAN")
- John Doe ("DOE")
- AMD
- HR-4800
- HR-4264
- HR-777
Screenshots (examples)