From fe93fd8c6e059f3321a8a913d64c2c75ccd4b707 Mon Sep 17 00:00:00 2001 From: John Davis Date: Wed, 21 Feb 2024 23:27:09 -0500 Subject: [PATCH] Return value must be subscriptable --- lib/galaxy/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index e891b8ed8d1b..f2bac5f47e96 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -9543,7 +9543,7 @@ def get_or_create(): @classmethod def get(cls, *args, **kwargs): stmt = select(PSAAssociation).filter_by(*args, **kwargs) - return cls.sa_session.scalars(stmt) + return cls.sa_session.scalars(stmt).all() @classmethod def remove(cls, ids_to_delete):