mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix RemoveIn20Warning: Query.join(str)
RemovedIn20Warning: Using strings to indicate relationship names in Query.join() is deprecated and will be removed in SQLAlchemy 2.0. Please use the class-bound attribute directly.
This commit is contained in:
@@ -1394,7 +1394,7 @@ class DirectoryModelExportStore(ModelExportStore):
|
||||
# Write datasets' attributes to file.
|
||||
query = (sa_session.query(model.HistoryDatasetAssociation)
|
||||
.filter(model.HistoryDatasetAssociation.history == history)
|
||||
.join("dataset")
|
||||
.join(model.Dataset)
|
||||
.options(joinedload("dataset").joinedload("actions"))
|
||||
.order_by(model.HistoryDatasetAssociation.hid)
|
||||
.filter(model.Dataset.purged == expression.false()))
|
||||
|
||||
Reference in New Issue
Block a user