Commit cc08430b by Tu Nombre

Solucuinado error de operacion ilegal

1 parent c9901f4c
......@@ -5,3 +5,4 @@ deltaminutos = 7
delataPositivoNegativo = "-"
ManualLogin = False # PAra hacer pruebas sin tener que loguear
port = 11500
codigo_cent = "61"
......@@ -106,7 +106,7 @@ class FosaDiaria():
mes = now.strftime("%m")
ano = now.strftime("%Y")
self.LimpiarCarpertaDescarga()
URL = f"""https://rto.cent.gov.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=130&fechaConsulta={dia}%2F{mes}%2F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
URL = f"""https://rto.cent.gov.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller={codigo_cent}&fechaConsulta={dia}%2F{mes}%2F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
selenium.get(URL)
......
#!/bin/bash
ls /home/juan/Descargas/ -ls | grep Planilla_Diaria-130 | grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_1.txt
ls /home/juan/Descargas/ -ls | grep Planilla_Diaria-61 | grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_1.txt
......@@ -209,6 +209,7 @@ def report():
answer['header']["hora"] = str(fingfd)
s.driver.quit()
print("report",answer)
return json.dumps(answer)
def login(u, p, s):
......@@ -315,6 +316,9 @@ def readdata(s, r):
r['gaseshumos']['co'] = _e2q(_attempt( reach(f"cantCO"), "?" )(s))
r['gaseshumos']['hc'] = _e2q(_attempt( reach(f"cantHC"), "?" )(s))
#Nivel sonoro
#r['ruido']["nivelsonoro"] = _e2q(_attempt( reach(f"extEscape"), "?" )(s))
#print(r)
return r
def rnddata(r):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!