diff --git a/app/objects/c_operation.py b/app/objects/c_operation.py index 7f961d8f1..d7b553773 100644 --- a/app/objects/c_operation.py +++ b/app/objects/c_operation.py @@ -187,10 +187,9 @@ def update_untrusted_agents(self, agent): async def all_facts(self): knowledge_svc_handle = BaseService.get_service('knowledge_svc') - data_svc_handle = BaseService.get_service('data_svc') seeded_facts = [] if self.source: - seeded_facts = await data_svc_handle.get_facts_from_source(self.source.id) + seeded_facts = await knowledge_svc_handle.get_facts(criteria=dict(source=self.source.id)) learned_facts = await knowledge_svc_handle.get_facts(criteria=dict(source=self.id)) learned_facts = [f for f in learned_facts if f.score > 0] return seeded_facts + learned_facts