Skip to content

Commit

Permalink
Tweak SQLAlchemy usage in get_user_data_tables
Browse files Browse the repository at this point in the history
Co-authored-by: John Davis <[email protected]>
  • Loading branch information
mvdbeek and jdavcs authored Feb 8, 2024
1 parent 95f7aed commit a6721c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,12 @@ def __init__(self, email=None, password=None, username=None):

def get_user_data_tables(self, data_table: str):
session = object_session(self)
assert session
metadata_select = (
select(HistoryDatasetAssociation)
.join(Dataset)
.join(History)
.filter(
.where(
HistoryDatasetAssociation.deleted == false(),
HistoryDatasetAssociation.extension == "data_manager_json",
History.user_id == self.id,
Expand Down

0 comments on commit a6721c1

Please sign in to comment.