Skip to content

Commit

Permalink
fix: reference self instead of fixed instance #301
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Bozhinov <45173816+VKTB@users.noreply.github.com>
  • Loading branch information
MRichards99 and VKTB authored Jan 24, 2022
1 parent 95319a8 commit 40f5662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datagateway_api/src/search_api/panosc_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_icat_mapping(self, panosc_entity_name, field_name):
)

try:
icat_mapping = mappings.mappings[panosc_entity_name][field_name]
icat_mapping = self.mappings[panosc_entity_name][field_name]
log.debug("ICAT mapping/translation found: %s", icat_mapping)
except KeyError as e:
raise FilterError(f"Bad PaNOSC to ICAT mapping: {e.args}")
Expand Down

0 comments on commit 40f5662

Please sign in to comment.