Consolidation détection jours
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user