From 91581f294efdbb797ff9ebe90b8efa508f37d333 Mon Sep 17 00:00:00 2001 From: Caleb R Little Date: Fri, 29 Oct 2021 10:44:14 -0400 Subject: [PATCH] Updated the learning service to remove a potential bug with link-only facts --- app/service/learning_svc.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/service/learning_svc.py b/app/service/learning_svc.py index f138ae725..7d67bb203 100644 --- a/app/service/learning_svc.py +++ b/app/service/learning_svc.py @@ -73,8 +73,6 @@ async def _store_results(self, link, facts, operation=None): if fact.trait in relationship: matches.append(fact) facts_covered.append(fact) - else: - await link._save_fact(operation=operation, fact=fact, score=link.score, relationship=None) for pair in itertools.combinations(matches, r=2): if pair[0].trait != pair[1].trait: await link._create_relationships([Relationship(source=pair[0], edge='has', target=pair[1])],