mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Alternative fix for missing metadata on datasets that report output size 0
This commit is contained in:
@@ -1251,7 +1251,7 @@ class JobWrapper(object, HasResourceParameters):
|
||||
if job.states.ERROR == final_job_state:
|
||||
dataset.blurb = "error"
|
||||
dataset.mark_unhidden()
|
||||
elif not purged and dataset.has_data():
|
||||
elif not purged:
|
||||
# If the tool was expected to set the extension, attempt to retrieve it
|
||||
if dataset.ext == 'auto':
|
||||
dataset.extension = context.get('ext', 'data')
|
||||
@@ -1299,7 +1299,7 @@ class JobWrapper(object, HasResourceParameters):
|
||||
except Exception:
|
||||
dataset.set_peek()
|
||||
else:
|
||||
# Handle an empty dataset.
|
||||
# Handle purged datasets.
|
||||
dataset.blurb = "empty"
|
||||
if dataset.ext == 'auto':
|
||||
dataset.extension = context.get('ext', 'txt')
|
||||
|
||||
Reference in New Issue
Block a user