Skip to content

Commit

Permalink
py2b
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed May 9, 2024
1 parent 6c5a213 commit 23f3298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/scheming/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,9 @@ def before_dataset_index(self, data_dict):
continue
# index the field as extras_*
field_name = field['field_name']
extras_field_name = 'extras_{}'.format(field_name)
value = data_dict.get(field_name)
data_dict[f'extras_{field_name}'] = self.get_values_to_index(field, value)
data_dict[extras_field_name] = self.get_values_to_index(field, value)

return data_dict

Expand Down

0 comments on commit 23f3298

Please sign in to comment.