From baed73d3111cc6da4929616f44f479f41dcb0569 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 16 Feb 2022 11:38:36 +0100 Subject: [PATCH] Fix history_export include_hidden=False handling Fixes https://github.com/galaxyproject/galaxy/issues/13386 --- lib/galaxy/model/store/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/store/__init__.py b/lib/galaxy/model/store/__init__.py index dd580755442..d2c1c323c50 100644 --- a/lib/galaxy/model/store/__init__.py +++ b/lib/galaxy/model/store/__init__.py @@ -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