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 charges into correct fields for v2 #398

Closed bepetersn closed 10 years ago

bepetersn commented 10 years ago

Basically look at countyapi/charges.py and tests/django_api/test_charges.py, and create the exact same behavior with the SQLAlchemy ORM instead of Django. Port the test too if you would.

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