From c731145a379bfdcd3eab5ab8ab66dc65655b5586 Mon Sep 17 00:00:00 2001 From: Alice Butcher Date: Thu, 23 Nov 2023 11:29:10 +0000 Subject: [PATCH] fix: set default resource totals to 0 --- ckanext/versioned_datastore/lib/downloads/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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