diff --git a/src/agenda_culturel/importation.py b/src/agenda_culturel/importation.py index 2760438..c35994a 100644 --- a/src/agenda_culturel/importation.py +++ b/src/agenda_culturel/importation.py @@ -53,11 +53,8 @@ class EventsImporter: # get events for event in structure["events"]: - if "created_date" not in event: - if self.date is not None: - event["created_date"] = self.date - else: - event["created_date"] = datetime.now() + if "last_modified" not in event and self.date is not None: + event["last_modified"] = self.date if not self.import_event(event): return (False, self.error_message)