mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #13202 from mvdbeek/fix_metadata_source_access
This commit is contained in:
@@ -1022,8 +1022,9 @@ class Tool(Dictifiable):
|
||||
has_missing_data = len(edam_operations) == 0 or len(edam_topics) == 0
|
||||
if has_missing_data:
|
||||
biotools_reference = self.biotools_reference
|
||||
if biotools_reference:
|
||||
biotools_entry = self.app.biotools_metadata_source.get_biotools_metadata(biotools_reference)
|
||||
metadata_source = self.app.biotools_metadata_source
|
||||
if biotools_reference and metadata_source:
|
||||
biotools_entry = metadata_source.get_biotools_metadata(biotools_reference)
|
||||
if biotools_entry:
|
||||
edam_info = biotools_entry.edam_info
|
||||
if len(edam_operations) == 0:
|
||||
|
||||
@@ -103,6 +103,7 @@ class MockApp(di.Container):
|
||||
self.user_manager = UserManager(self)
|
||||
self.execution_timer_factory = Bunch(get_timer=StructuredExecutionTimer)
|
||||
self.is_job_handler = False
|
||||
self.biotools_metadata_source = None
|
||||
rebind_container_to_task(self)
|
||||
|
||||
def url_for(*args, **kwds):
|
||||
|
||||
Reference in New Issue
Block a user