diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index d3dd190fcc1c..b178568c723e 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -2048,7 +2048,7 @@ def src_id_to_item( id_value = value["id"] decoded_id = id_value if isinstance(id_value, int) else security.decode_id(id_value) try: - item = sa_session.query(src_to_class[value["src"]]).get(decoded_id) + item = sa_session.get(src_to_class[value["src"]], decoded_id) except KeyError: raise ValueError(f"Unknown input source {value['src']} passed to job submission API.") item.extra_params = {k: v for k, v in value.items() if k not in ("src", "id")}