Skip to content

Commit

Permalink
No f-strings in py2
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jun 14, 2024
1 parent 1d1edab commit aaac51f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/scheming/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ def before_index(self, data_dict):
if isinstance(value, list):
value = ' '.join(value)
# Index a flattened version
new_key = f'extras_{field["field_name"]}__{key}'
new_key = 'extras_{field_name}__{key}'.format(
field_name=field["field_name"], key=key
)
if not data_dict.get(new_key):
data_dict[new_key] = value
else:
Expand Down

0 comments on commit aaac51f

Please sign in to comment.