diff --git a/lib/galaxy/quota/__init__.py b/lib/galaxy/quota/__init__.py index b78fa0e57aa3..f5f4c2a191f7 100644 --- a/lib/galaxy/quota/__init__.py +++ b/lib/galaxy/quota/__init__.py @@ -167,7 +167,7 @@ def get_quota(self, user, quota_source_label=None) -> Optional[int]: ) conn = self.sa_session.connection() with conn.begin(): - res = conn.execute(query, is_true=True, user_id=user.id, label=quota_source_label).fetchone() + res = conn.execute(query, {"is_true": True, "user_id": user.id, "label": quota_source_label}).fetchone() if res: return int(res[0]) if res[0] else None else: @@ -191,7 +191,9 @@ def _default_quota(self, default_type, quota_source_label): conn = self.sa_session.connection() with conn.begin(): - res = conn.execute(query, is_true=True, label=quota_source_label, default_type=default_type).fetchone() + res = conn.execute( + query, {"is_true": True, "label": quota_source_label, "default_type": default_type} + ).fetchone() if res: return res[0] else: