sc3 / cookcountyjail

A Django app that tracks the population of Cook County Jail over time and summarizes trends.
http://cookcountyjail.recoveredfactory.net/api/1.0/?format=json
Other
31 stars 23 forks source link

process court_house_location into correct fields for v2 #399

Closed bepetersn closed 10 years ago

bepetersn commented 10 years ago

Start by looking at countyapi/court_location_info.py and tests/django_api/court_location_info.py, and create the same functionality which is currently using the Django ORM with SQLAlchemy.

Note that the input to this class should now be just the raw court_house_location field, a string, as specified by #390.

Other than this, the main difference from the old django code is that you should parse court_house_location into two CourtHouse and CourtRoom models as documented in the information model. Also try to port the test, if you would.