Consolidation détection jours
This commit is contained in:
parent
262bf0c1b1
commit
2653d088c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user