Si le lieu est vide, on met le nom par défaut

This commit is contained in:
Jean-Marie Favreau 2024-09-06 15:10:44 +02:00
parent a0e8291a9c
commit 14694a6d85

View File

@ -76,7 +76,7 @@ class ICALExtractor(Extractor):
end_day = end_day + timedelta(days=-1)
location = self.get_item_from_vevent(event, "LOCATION")
if location is None:
if location is None or location.replace(" ", "") == "":
location = self.default_value_if_exists(default_values, "location")
description = self.get_item_from_vevent(event, "DESCRIPTION")