Merge pull request #13202 from mvdbeek/fix_metadata_source_access

This commit is contained in:
Nicola Soranzo
2022-01-19 18:40:47 +00:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -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:
+1
View File
@@ -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):