Skip to content

Commit

Permalink
new sqlalchemy 2.0 compatible syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van den Beek <[email protected]>
  • Loading branch information
mr-c and mvdbeek authored Nov 1, 2023
1 parent 78d4415 commit 1959e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")}
Expand Down

0 comments on commit 1959e79

Please sign in to comment.