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 3ef944e7
authored
2023-10-03 09:46:48 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Prueba de filtro de archivo
1 parent
19ad4ffe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
configuracion.py
fosadiaria.py
configuracion.py
View file @
3ef944e
carpetaDescargas
=
"/home/juan/Descargas/"
carpetaDescargas
=
"/home/juan/Descargas/"
cabezaeraDescargas
=
"Planilla_Diaria"
\ No newline at end of file
\ No newline at end of file
cabezaeraDescargas
=
"Planilla_Diaria-54"
\ No newline at end of file
\ No newline at end of file
fosadiaria.py
View file @
3ef944e
...
@@ -56,10 +56,11 @@ class FosaDiaria():
...
@@ -56,10 +56,11 @@ 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 | grep
{self.cabezaera} | grep xls
> {tmp}"""
)
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls | grep
xls 2
> {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
)
der
=
line
.
split
(
" "
)[
0
]
der
=
line
.
split
(
" "
)[
0
]
archivo
=
f
"""{der}"""
archivo
=
f
"""{der}"""
print
(
archivo
)
print
(
archivo
)
...
...
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