Commit da840dcc by Juan Pablo dure

correccion de hora andando

1 parent 62524843
......@@ -43,7 +43,7 @@ class FosaDiaria():
"""Por ahora solo lo usa para extraer hora el resto lo descartp"""
try:
data = self.Cache[dia][dominio]
fin = data["fin"]
fin = data["hora"]
del data
except Exception as E:
print("Error al limpiar datos ",E)
......@@ -67,10 +67,10 @@ class FosaDiaria():
except:
self.Cache[dia] = {}
for n in data["domino"].keys():
print("key", n)
#print("key", n)
dominio = data["domino"][n]
print(dominio,"dominio")
print(type(n))
#print(dominio,"dominio")
#print(type(n))
self.Cache[dia][dominio] ={
"dominio":dominio,
"tipo":data["tipo"][n],
......@@ -82,7 +82,7 @@ class FosaDiaria():
"hora":self.CorreccionDeHora(data["fin"][n],dia)
}
n = n + 1 #arranco desde 0
print(self.Cache)
#print(self.Cache)
def CorreccionDeHora(self,fin, dia):
"""Hora de finalizacion menos 10 minutos"""
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!