Skip to content

Commit

Permalink
unify statement format
Browse files Browse the repository at this point in the history
Co-authored-by: John Davis <[email protected]>
  • Loading branch information
martenson and jdavcs authored Oct 26, 2023
1 parent c7bd694 commit 34ebef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def wrap(self, value, session):
if isinstance(value, int):
return session.get(galaxy.model.MetadataFile, value)
else:
wrapped_value = session.query(galaxy.model.MetadataFile).filter_by(uuid=value).one_or_none()
wrapped_value = session.execute(select(galaxy.model.MetadataFile).filter_by(uuid=value)).scalar_one_or_none()
if wrapped_value:
return wrapped_value
else:
Expand Down

0 comments on commit 34ebef7

Please sign in to comment.