From 34ebef72e0cb0d1b55ef0b67041bb7cd1b33b81e Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 26 Oct 2023 20:36:48 +0200 Subject: [PATCH] unify statement format Co-authored-by: John Davis --- lib/galaxy/model/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/metadata.py b/lib/galaxy/model/metadata.py index c2302e4a23e8..6a3080098238 100644 --- a/lib/galaxy/model/metadata.py +++ b/lib/galaxy/model/metadata.py @@ -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: