improve readability sql_alch & updt map_thumb

This commit is contained in:
devfzn 2024-03-06 02:02:06 -03:00
parent 7a30ea3e33
commit 78a6996f5f
2 changed files with 19 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 KiB

After

Width:  |  Height:  |  Size: 279 KiB

View File

@ -230,18 +230,26 @@ def carga_access_log(log):
fecha = None
print('Exception split Fecha:', ex)
if ip_registrada(ip):
session.add(Visita(ip=ip,
cod_html=codigo,
fecha=fecha,
metodo=metodo,
consulta=url,
registro=1))
session.add(
Visita(
ip=ip,
cod_html=codigo,
fecha=fecha,
metodo=metodo,
consulta=url,
registro=1
)
)
else:
session.add(Visita(ip=ip,
cod_html=codigo,
fecha=fecha,
metodo=metodo,
consulta=url))
session.add(
Visita(
ip=ip,
cod_html=codigo,
fecha=fecha,
metodo=metodo,
consulta=url
)
)
except Exception as ex:
print('Exception: ', ex)
try: