From e77f9bb736de746d28566ea85e256a3730589d87 Mon Sep 17 00:00:00 2001 From: John Davis Date: Fri, 20 Jan 2023 18:48:33 -0500 Subject: [PATCH] Join/load: replace strings with attrs (webapps...controllers.history) --- lib/galaxy/webapps/galaxy/controllers/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/history.py b/lib/galaxy/webapps/galaxy/controllers/history.py index 73d9717e7e0a..6411a3a158b6 100644 --- a/lib/galaxy/webapps/galaxy/controllers/history.py +++ b/lib/galaxy/webapps/galaxy/controllers/history.py @@ -208,7 +208,7 @@ def get_value(self, trans, grid, history): ] def build_initial_query(self, trans, **kwargs): - return trans.sa_session.query(self.model_class).join("users_shared_with") + return trans.sa_session.query(self.model_class).join(self.model_class.users_shared_with) def apply_query_filter(self, trans, query, **kwargs): return query.filter(model.HistoryUserShareAssociation.user == trans.user)