Commit 28957658 by Tu Nombre

Traigo datos de ruido si existen

1 parent cc08430b
Showing 1 changed file with 8 additions and 1 deletions
......@@ -165,6 +165,7 @@ def report():
"frenos" : {},
"trasero" : {},
"gaseshumos" : {},
"ruido":{},
}
answer['header']['patente'] = plate.upper()
......@@ -317,7 +318,13 @@ def readdata(s, r):
r['gaseshumos']['hc'] = _e2q(_attempt( reach(f"cantHC"), "?" )(s))
#Nivel sonoro
#r['ruido']["nivelsonoro"] = _e2q(_attempt( reach(f"extEscape"), "?" )(s))
try:
r['ruido']["nivelsonoro"] = _e2q(_attempt( reach(f"extEscape"), "?" )(s))
except Exception as E:
print("""###Error a traer datos de nivel sonoro###""")
print(E)
print("""###Error a traer datos de nivel sonoro###""")
#print(r)
return r
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!