From f3f12058dc60340d5ee2e3c7063a53fb3ef70867 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Sat, 16 Dec 2023 18:45:53 +0100 Subject: [PATCH] (assistant) Fix logic error in filtering related domains --- .../marginalia/assistant/domains/SimilarDomainsService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/services-core/assistant-service/src/main/java/nu/marginalia/assistant/domains/SimilarDomainsService.java b/code/services-core/assistant-service/src/main/java/nu/marginalia/assistant/domains/SimilarDomainsService.java index 3aae8986..65a7989f 100644 --- a/code/services-core/assistant-service/src/main/java/nu/marginalia/assistant/domains/SimilarDomainsService.java +++ b/code/services-core/assistant-service/src/main/java/nu/marginalia/assistant/domains/SimilarDomainsService.java @@ -257,12 +257,12 @@ public class SimilarDomainsService { // Remove domains that have a relatively high likelihood of being dead links // or not very interesting - if (!domainResult.indexed() - && !domainResult.active() - && domainResult.relatedness() > 50) + if (!(domainResult.indexed() && domainResult.active()) + && domainResult.relatedness() < 50) { return true; } + return false; }