From bfe0597b289e366fb054864f34e4f1d31b7c8495 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:50:39 +0200 Subject: [PATCH] Fix dataset_id_field assignment in XLS harvester configuration --- ckanext/schemingdcat/harvesters/xls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/schemingdcat/harvesters/xls.py b/ckanext/schemingdcat/harvesters/xls.py index e3d271c8..818462f0 100644 --- a/ckanext/schemingdcat/harvesters/xls.py +++ b/ckanext/schemingdcat/harvesters/xls.py @@ -676,7 +676,7 @@ def validate_config(self, config): # Check if dataset_id_field exists and is a string if 'dataset_id_field' in config_obj: - dataset_id_field = config_obj['datadictionary_sheet'] + dataset_id_field = config_obj['dataset_id_field'] if not isinstance(dataset_id_field, basestring): raise ValueError('dataset_id_field must be a string')