Skip to content

Commit

Permalink
opdm object is passed in now the same way as metadata to the query
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristjan committed Oct 28, 2024
1 parent 1b7812d commit dcfbd8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OPDM/OPDM_SOAP_API.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ def query_object(self, object_type="IGM", metadata_dict=None, components=None, d

query_object = self.Operations.QueryObject.format(query_id=query_id)

query_object = add_xml_elements(query_object, ".//opdm:OPDMObject", {"pmd:Object-Type": object_type})
# Use default object type or passed in object type from function call, if not defined directly in query metadata
if not metadata_dict.get("pmd:Object-Type"):
metadata_dict["pmd:Object-Type"] = object_type

if metadata_dict:
query_object = add_xml_elements(query_object, ".//opdm:OPDMObject", metadata_dict)
Expand Down

0 comments on commit dcfbd8f

Please sign in to comment.