From 6b49ed46ea08f4e82b31bd591d1be1af0a7dcee7 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Fri, 30 Oct 2020 17:57:46 +0100 Subject: [PATCH] Re-add uncategorized --- lib/galaxy/tools/toolbox/base.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/galaxy/tools/toolbox/base.py b/lib/galaxy/tools/toolbox/base.py index 8f1706d2f1d7..72f3077a3fbc 100644 --- a/lib/galaxy/tools/toolbox/base.py +++ b/lib/galaxy/tools/toolbox/base.py @@ -528,7 +528,7 @@ def _load_tool_panel_edam(self): if tool_id in self._tools_by_id: for term, label in self._get_edam_sec(section_val): if term == 'uncategorized': - uncategorized.append((tool_id, key, val, val.name)) + uncategorized.append((tool_id, key, section_val, val.name)) else: for path in self.edam[term]['path']: if len(path) == 1: @@ -551,10 +551,6 @@ def _load_tool_panel_edam(self): log.debug(f"Loaded workflow: {workflow_id} {workflow.name}") log.debug("Loading tool panel finished %s", execution_timer) - # print(operations.keys()) - # print([self._sort_edam_key(x) for x in operations.keys()]) - # print(sorted(operations.keys(), lambda x: self._sort_edam_key(x))) - for term in sorted(operations.keys(), key=lambda x: self._sort_edam_key(x)): if len(operations[term].keys()) == 0: continue @@ -584,9 +580,10 @@ def _load_tool_panel_edam(self): self._integrated_section_by_tool[tool_id] = key, val_name section = self._get_section('uncategorized', 'Uncategorized') - # for (tool_id, key, val, val_name) in uncategorized: - # self.__add_tool_to_tool_panel(val, section, section=True) - # self._integrated_section_by_tool[tool_id] = key, val_name + for (tool_id, key, val, val_name) in uncategorized: + print(tool_id, key, val, val_name) + self.__add_tool_to_tool_panel(val, section, section=True) + self._integrated_section_by_tool[tool_id] = key, val_name def _sort_edam_key(self, x): if x in ('operation_0004', 'topic_0003'):