Skip to content

Commit

Permalink
Wrap sql in text() (SA2.0 error)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Dec 19, 2023
1 parent ab7c9a5 commit d46d62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ def get_disk_usage(self, nice_size=False, quota_source_label=None):
"user_id": self.id,
"label": quota_source_label,
}
row = sa_session.execute(statement, params).fetchone()
row = sa_session.execute(text(statement), params).fetchone()
if row is not None:
rval = row[0]
else:
Expand Down

0 comments on commit d46d62a

Please sign in to comment.