falta filtrar por fecha y ampliaciones

This commit is contained in:
binlaab
2025-11-25 13:07:14 +01:00
parent ead080b2e5
commit f3b588a3b9
5 changed files with 22 additions and 18 deletions

View File

@@ -3,9 +3,10 @@ from normalizacion import *
def filtrar_telefono(fichero, tel):
f = open(fichero, "r", encoding="utf-8")
tel_n = normalizar_telefono(tel)
for i in f.readlines():
telefono = i.split(";")[0]
if telefono.strip() == tel:
telefono = normalizar_telefono(i.split(";")[0])
if telefono.strip() == tel_n:
print(i)
else:
continue