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)