improve readability sql_alch & updt map_thumb
This commit is contained in:
parent
7a30ea3e33
commit
78a6996f5f
Binary file not shown.
Before Width: | Height: | Size: 279 KiB After Width: | Height: | Size: 279 KiB |
16
sql_alch.py
16
sql_alch.py
@ -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,
|
||||
session.add(
|
||||
Visita(
|
||||
ip=ip,
|
||||
cod_html=codigo,
|
||||
fecha=fecha,
|
||||
metodo=metodo,
|
||||
consulta=url,
|
||||
registro=1))
|
||||
registro=1
|
||||
)
|
||||
)
|
||||
else:
|
||||
session.add(Visita(ip=ip,
|
||||
session.add(
|
||||
Visita(
|
||||
ip=ip,
|
||||
cod_html=codigo,
|
||||
fecha=fecha,
|
||||
metodo=metodo,
|
||||
consulta=url))
|
||||
consulta=url
|
||||
)
|
||||
)
|
||||
except Exception as ex:
|
||||
print('Exception: ', ex)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user