diff --git a/lib/galaxy/webapps/galaxy/controllers/admin.py b/lib/galaxy/webapps/galaxy/controllers/admin.py index 7e788bb1cc0f..bd0ea3a06158 100644 --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -73,7 +73,7 @@ def sort(self, trans, query, ascending, column_name=None): .group_by(model.GalaxySession.table.c.user_id) .subquery() ) - query = query.outerjoin((last_login_subquery, model.User.table.c.id == last_login_subquery.c.user_id)) + query = query.outerjoin(last_login_subquery, model.User.table.c.id == last_login_subquery.c.user_id) if not ascending: query = query.order_by((last_login_subquery.c.last_login).desc().nullslast())