On fixe le cas des événements sans description

This commit is contained in:
Jean-Marie Favreau 2024-11-24 12:37:20 +01:00
parent ed7944aaa9
commit 5e65ecdb5c

View File

@ -2026,7 +2026,7 @@ class CategorisationRule(models.Model):
if self.desc_exact: if self.desc_exact:
result = self.description_contains in event.description result = self.description_contains in event.description
else: else:
result = ( result = event.description and (
remove_accents(self.description_contains).lower() remove_accents(self.description_contains).lower()
in remove_accents(event.description).lower() in remove_accents(event.description).lower()
) )