palewire / django-calaccess-scraped-data

A Django app to scrape campaign-finance data from the California Secretary of State’s CAL-ACCESS website
http://django-calaccess.californiacivicdata.org
MIT License
2 stars 2 forks source link

Could the opencivicdata methods on the ScrapedCandidate model be devolved to the processed-data app #5

Closed palewire closed 7 years ago

palewire commented 7 years ago

Then this app would not require OCD as a dependency at all and could live as a free-standing module within our stack

gordonje commented 7 years ago

I believe the answer is "yes".

There are only two modules that import from opencivicdata:

  1. getsamplejson.py was a management command I wrote to spit out some example json for the elections OCDEP. It should probably move back under the processed data app. Though, it may have outlived its utility.
  2. candidates.py (under models) has couple of methods: .get_or_create_post() and . get_or_create_person(). These methods were written and added to the base management command in processed data app. Just checked and there are no calls to these model methods in either the scraped app or the processed app.