Fix opérateur comparaison

This commit is contained in:
Jean-Marie Favreau 2024-10-29 18:07:08 +01:00
parent 88bd0e9e6d
commit c47a4eaba0

View File

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