mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Combine list comprehensions, slightly tweak logic.
This commit is contained in:
@@ -330,8 +330,7 @@ class TagDatasetAction(DefaultJobAction):
|
||||
@classmethod
|
||||
def execute(cls, app, sa_session, action, job, replacement_dict):
|
||||
if action.action_arguments:
|
||||
tags = [t.strip() for t in action.action_arguments.get('tags', '').split(',') if t.strip()]
|
||||
tags = [t.replace('#', 'name:') if t.startswith('#') else t for t in tags]
|
||||
tags = [t.replace('#', 'name:') if t.startswith('#') else t for t in [t.strip() for t in action.action_arguments.get('tags', '').split(',') if t.strip()]]
|
||||
if tags:
|
||||
for dataset_assoc in job.output_datasets:
|
||||
if action.output_name == '' or dataset_assoc.name == action.output_name:
|
||||
|
||||
Reference in New Issue
Block a user