Skip to content

Commit

Permalink
Fix new bug: wrap raw sql in text()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 2, 2024
1 parent a8f2f2c commit 1c4b114
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 @@ -691,7 +691,7 @@ def calculate_user_disk_usage_statements(user_id, quota_source_map, for_sqlite=F
def calculate_disk_usage_per_objectstore(sa_session, user_id: str):
statement = UNIQUE_DATASET_USER_USAGE_PER_OBJECTSTORE
params = {"id": user_id}
return sa_session.execute(statement, params).all()
return sa_session.execute(text(statement), params).all()


# move these to galaxy.schema.schema once galaxy-data depends on
Expand Down

0 comments on commit 1c4b114

Please sign in to comment.