Fix history_export include_hidden=False handling

Fixes https://github.com/galaxyproject/galaxy/issues/13386
This commit is contained in:
mvdbeek
2022-02-16 11:41:47 +01:00
parent cea780cbf8
commit baed73d311
+1 -1
View File
@@ -1142,7 +1142,7 @@ class DirectoryModelExportStore(ModelExportStore):
datasets = query.all()
for dataset in datasets:
dataset.annotation = get_item_annotation_str(sa_session, history.user, dataset)
add_dataset = (not dataset.visible or not include_hidden) and (not dataset.deleted or include_deleted)
add_dataset = (dataset.visible or include_hidden) and (not dataset.deleted or include_deleted)
if dataset.id in self.collection_datasets:
add_dataset = True