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 40b1fe68
authored
2023-10-03 10:07:50 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mejora tiempos y prueba
1 parent
8443652b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
fosadiaria.py
fosadiaria.py
View file @
40b1fe6
...
@@ -59,6 +59,7 @@ class FosaDiaria():
...
@@ -59,6 +59,7 @@ class FosaDiaria():
n
=
0
n
=
0
while
test
:
while
test
:
arc
=
self
.
_BuscarExcelDescargado
(
tmp
)
arc
=
self
.
_BuscarExcelDescargado
(
tmp
)
print
(
arc
,
n
)
n
=
n
+
1
n
=
n
+
1
if
not
arc
==
False
:
if
not
arc
==
False
:
test
=
False
test
=
False
...
@@ -76,7 +77,7 @@ class FosaDiaria():
...
@@ -76,7 +77,7 @@ class FosaDiaria():
print
(
line
)
print
(
line
)
der
=
line
.
split
(
" "
)[
-
1
]
der
=
line
.
split
(
" "
)[
-
1
]
archivo
=
f
"""{self.CarpetaDescarga}{der}"""
archivo
=
f
"""{self.CarpetaDescarga}{der}"""
print
(
archivo
)
#
print(archivo)
rta
=
archivo
rta
=
archivo
file1
.
close
()
file1
.
close
()
os
.
system
(
f
"""rm {tmp}"""
)
os
.
system
(
f
"""rm {tmp}"""
)
...
@@ -85,5 +86,6 @@ class FosaDiaria():
...
@@ -85,5 +86,6 @@ class FosaDiaria():
def
LimpiarCarpertaDescarga
(
self
):
def
LimpiarCarpertaDescarga
(
self
):
try
:
try
:
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
sleep
(
0.5
)
except
Exception
as
E
:
except
Exception
as
E
:
print
(
f
"Error al intentar borrar planillas diarias anteriores: {str(E)}"
)
print
(
f
"Error al intentar borrar planillas diarias anteriores: {str(E)}"
)
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