Skip to content

Commit

Permalink
Fix dataset_id_field assignment in XLS harvester configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Oct 22, 2024
1 parent 9048d8d commit bfe0597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/schemingdcat/harvesters/xls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit bfe0597

Please sign in to comment.