Correction du test de similarité

This commit is contained in:
Jean-Marie Favreau 2024-05-03 14:07:00 +02:00
parent 1c20ac93bf
commit 750832bf71

View File

@ -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)