Skip to content

Commit 4f996c9

Browse files
authored
Merge pull request #20994 from davelopez/backport_#20984
[25.0] Backport of #20984
2 parents f33eb42 + c2899e9 commit 4f996c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/galaxy/model/store/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,14 +2030,13 @@ def add(src, dest):
20302030
as_dict["extra_files_path"] = extra_files_path
20312031
return
20322032

2033+
conversion = self.dataset_implicit_conversions.get(dataset)
2034+
conversion_key = self.serialization_options.get_identifier(self.security, conversion) if conversion else None
2035+
20332036
if file_name:
20342037
if not os.path.exists(dir_path):
20352038
os.makedirs(dir_path)
20362039

2037-
conversion = self.dataset_implicit_conversions.get(dataset)
2038-
conversion_key = (
2039-
self.serialization_options.get_identifier(self.security, conversion) if conversion else None
2040-
)
20412040
target_filename = get_export_dataset_filename(
20422041
as_dict["name"], as_dict["extension"], as_dict["encoded_id"], conversion_key=conversion_key
20432042
)

0 commit comments

Comments
 (0)