datamade / openness-project-nmid

Money Trail NM - New Mexico In Depth's Campaign Finance Explorer
https://moneytrailnm.com
3 stars 1 forks source link

Fall 2019 data import #164

Closed jeancochrane closed 4 years ago

jeancochrane commented 4 years ago

Overview

Add new data for fall 2019. In the process, upgrade a few dependencies that were raising errors, notably raven (the Sentry SDK) and openpyxl (Excel reading library). In the later case, make some adjustments to the import script to match new APIs.

Notes

I had to do some manual cleaning on Cam_ContribExpenditure to remove improperly-formatted Excel carriage returns (which show up as the string _x000d_). It's likely that we'll continue to see these carriage returns in future dumps if the SOS delivers us another Excel file for Cam_ContribExpenditure instead of the zipped CSV that they used to send us.

Testing instructions