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 19ad4ffe
authored
2023-10-03 09:39:02 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'pf2023-2' of git.anacsoft.com:Lusho/Pruebas-RTO into pf2023-2
2 parents
be9bb359
2585387c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
fosadiaria.py
fosadiaria.py
View file @
19ad4ff
...
@@ -56,14 +56,20 @@ class FosaDiaria():
...
@@ -56,14 +56,20 @@ class FosaDiaria():
def
BuscarExcelDescargado
(
self
,
tmp
=
"/dev/shm/tmpscdecas.txt"
):
def
BuscarExcelDescargado
(
self
,
tmp
=
"/dev/shm/tmpscdecas.txt"
):
rta
=
""
rta
=
""
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls > {tmp}"""
)
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls
| grep {self.cabezaera} | grep xls
> {tmp}"""
)
file1
=
open
(
tmp
,
'r'
)
file1
=
open
(
tmp
,
'r'
)
Lines
=
file1
.
readlines
()
Lines
=
file1
.
readlines
()
for
line
in
Lines
:
for
line
in
Lines
:
print
(
"Line: {}"
.
format
(
line
.
strip
()))
der
=
line
.
split
(
" "
)[
0
]
archivo
=
f
"""{der}"""
print
(
archivo
)
rta
=
archivo
file1
.
close
()
file1
.
close
()
os
.
system
(
f
"""rm {tmp}"""
)
os
.
system
(
f
"""rm {tmp}"""
)
return
rta
return
rta
def
LimpiarCarpertaDescarga
(
self
):
def
LimpiarCarpertaDescarga
(
self
):
try
:
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
except
Exception
as
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