From 750832bf71ed49d2bbd6c1237f199385fa8868e9 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Fri, 3 May 2024 14:07:00 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20du=20test=20de=20similarit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 174d2d1..01de085 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -198,7 +198,8 @@ class DuplicatedEvents(models.Model): duplicates = DuplicatedEvents.objects.all() for d in duplicates: comp = d.get_items_comparison() - similar = len([c for c in comp if not c["similar"]]) > 0 + logger.warning(comp) + similar = len([c for c in comp if not c["similar"]]) == 0 if similar: to_be_removed.append(d)