Skip to content

Commit 0649166

Browse files
Merge pull request #2340 from mitre/virts-2979
virts-2979 - Learning Service Fact Creation bugfix
2 parents 895c3ff + 0fdbe63 commit 0649166

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/service/learning_svc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ async def _store_results(self, link, facts, operation=None):
7373
if fact.trait in relationship:
7474
matches.append(fact)
7575
facts_covered.append(fact)
76-
else:
77-
await link._save_fact(operation=operation, fact=fact, score=link.score, relationship=None)
7876
for pair in itertools.combinations(matches, r=2):
7977
if pair[0].trait != pair[1].trait:
8078
await link._create_relationships([Relationship(source=pair[0], edge='has', target=pair[1])],

0 commit comments

Comments
 (0)