From 3cf874224f1bd46eb751ce4269f9a8098b983450 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 15 Jan 2025 00:34:43 +0100 Subject: [PATCH] =?UTF-8?q?On=20affiche=20que=20c'est=20dans=20le=20pass?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/db_importer.py | 2 ++ 1 file changed, 2 insertions(+) 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()