Correction du test de similarité
This commit is contained in:
parent
1c20ac93bf
commit
750832bf71
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user