palewire / django-calaccess-raw-data

A Django app to download, extract and load campaign finance and lobbying activity data from the California Secretary of State's CAL-ACCESS database
http://django-calaccess.californiacivicdata.org/
MIT License
64 stars 143 forks source link

Unnecessary download when resuming update #1491

Closed gordonje closed 8 years ago

gordonje commented 8 years ago

When I resumed this morning's update, after releasing the patch for #1490, the log showed that updatecalaccessrawdata did go into resume mode, but also re-downloaded the zip before skipping back to the step where it stalled: Loading the ReceivedFilingsCd model.

The culprit appears to be line 264 of updatecalaccessrawdata. This condition probably pre-dates the splitting up of the downloading and file extraction process into two different commands.

The fix includes: