diff --git a/ckanext/versioned_datastore/lib/downloads/download.py b/ckanext/versioned_datastore/lib/downloads/download.py index b0a5f1b5..b3b14b38 100644 --- a/ckanext/versioned_datastore/lib/downloads/download.py +++ b/ckanext/versioned_datastore/lib/downloads/download.py @@ -270,7 +270,7 @@ def generate_core(self): and v != common.NON_DATASTORE_VERSION } - resource_totals = {k: None for k in self.core_record.resource_ids_and_versions} + resource_totals = {k: 0 for k in self.core_record.resource_ids_and_versions} field_counts = {k: None for k in self.core_record.resource_ids_and_versions} # get info for resources that weren't just generated first, so we know if they