diff --git a/src/agenda_culturel/db_importer.py b/src/agenda_culturel/db_importer.py index 24e9c22..b3134e9 100644 --- a/src/agenda_culturel/db_importer.py +++ b/src/agenda_culturel/db_importer.py @@ -73,6 +73,8 @@ class DBImporterEvents: # conversion to Event, and return an error if it failed if not self.load_event(event): return (False, self.error_message) + else: + logger.warning("Event in the past, will not be imported: {}".format(event)) # finally save the loaded events in database self.save_imported()