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
2 people authored and mvdbeek committed Oct 27, 2023
1 parent c7bd694 commit d92bbb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/model/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ 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 d92bbb1

Please sign in to comment.