From c47a4eaba013d6d6df1c3d5e8478ee9f997f188e Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Tue, 29 Oct 2024 18:07:08 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20op=C3=A9rateur=20comparaison?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 5583b51..c6fe41b 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -967,7 +967,7 @@ class Event(models.Model): for attr in Event.data_fields(all=True, local_img=False, exact_location=False): values = [getattr(e, attr) for e in events] values = ["" if v is None else v for v in values] - values = [[] if attr == "tags" and v is "" else v for v in values] + values = [[] if attr == "tags" and v == "" else v for v in values] # only consider fixed part of Facebook urls if attr == "image": values = [v.split("?")[0] if "fbcdn.net" in v else v for v in values]