[MTELELIE-314]fix unlazy value
This commit is contained in:
parent
0e987d8b20
commit
1fcd8758e0
|
@ -79,7 +79,7 @@ def get_birthday_from_nn(numero_national):
|
||||||
numero_national : (str) numero national peut contenir espace . et -
|
numero_national : (str) numero national peut contenir espace . et -
|
||||||
return : (datetime) la date de naissance
|
return : (datetime) la date de naissance
|
||||||
"""
|
"""
|
||||||
numero_national = clean_string(numero_national)
|
numero_national = clean_string(unlazy(numero_national))
|
||||||
date = numero_national[:6]
|
date = numero_national[:6]
|
||||||
birthday = datetime.datetime.strptime(date, "%y%m%d")
|
birthday = datetime.datetime.strptime(date, "%y%m%d")
|
||||||
if birthday > datetime.datetime.now():
|
if birthday > datetime.datetime.now():
|
||||||
|
|
Loading…
Reference in New Issue