Commit 95a92d3b by Juan Pablo dure

qwd

1 parent 3f5e999a
...@@ -23,6 +23,10 @@ class FosaDiaria(): ...@@ -23,6 +23,10 @@ class FosaDiaria():
now = datetime.datetime.now() now = datetime.datetime.now()
dia = now.strftime("%d/%m/%Y") dia = now.strftime("%d/%m/%Y")
try: try:
data1 = self.Cache[dia]
except:
self.Cache[dia] = {}
try:
data = self.Cache[dia][dominio] data = self.Cache[dia][dominio]
except: except:
data = False data = False
...@@ -43,7 +47,7 @@ class FosaDiaria(): ...@@ -43,7 +47,7 @@ class FosaDiaria():
del data del data
except Exception as E: except Exception as E:
print("Error al limpiar datos ",E) print("Error al limpiar datos ",E)
fin = datetime.datetime.strftime(hora_format_cent) fin = datetime.datetime.now().strftime(hora_format_cent)
return(fin) return(fin)
def ActualizarDatosDominios(self,selenium,dia): def ActualizarDatosDominios(self,selenium,dia):
...@@ -59,7 +63,7 @@ class FosaDiaria(): ...@@ -59,7 +63,7 @@ class FosaDiaria():
print(data["domino"], type(data["domino"])) print(data["domino"], type(data["domino"]))
try: try:
test = self.Cache[dia] test = self.Cache[dia]
print(test) #print(test)
except: except:
self.Cache[dia] = {} self.Cache[dia] = {}
for n in data["domino"].keys(): for n in data["domino"].keys():
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!