Consolidation détection jours

This commit is contained in:
Jean-Marie Favreau 2024-10-12 21:15:28 +02:00
parent 262bf0c1b1
commit 2653d088c4

View File

@ -32,10 +32,15 @@ class CExtractor(Extractor):
def find_date(text):
splited_text = text.split(' ')
if len(splited_text) < 3:
return None
month = Extractor.guess_month(splited_text[1])
year = splited_text[2]
if month is None:
return None
year = splited_text[2]
if not year.isnumeric():
return None
year = int(year)