Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit da840dcc
authored
2023-10-04 16:56:44 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
correccion de hora andando
1 parent
62524843
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
fosadiaria.py
fosadiaria.py
View file @
da840dc
...
...
@@ -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"""
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment