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 62f98ef9
authored
2024-08-07 11:43:15 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Mejoro reporte de errores para depurar
1 parent
f5704771
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
data/reportes_gas_oil.json
reportes.py
data/reportes_gas_oil.json
View file @
62f98ef
{
{
"1"
:{
"1"
:{
"N1"
:{
"N1"
:{
"2"
:
"ReportePrueba
N
1L1.doc"
,
"2"
:
"ReportePrueba
G
1L1.doc"
,
"3"
:
""
"3"
:
""
},
},
"M1"
:{
"M1"
:{
...
...
reportes.py
View file @
62f98ef
...
@@ -18,13 +18,15 @@ def BuscarReporteDefecto(linea,tipo,cantidadEjes=2,conbustible="Nafta"):
...
@@ -18,13 +18,15 @@ def BuscarReporteDefecto(linea,tipo,cantidadEjes=2,conbustible="Nafta"):
data
=
json
.
load
(
f
)
data
=
json
.
load
(
f
)
try
:
try
:
rta
=
data
[
linea
][
tipo
][
cantidadEjes
]
rta
=
data
[
linea
][
tipo
][
cantidadEjes
]
except
:
except
Exception
as
E
:
print
(
f
"Error en despioje de objeto {E}"
)
# rta = configuracion.reporte_defecto[cantidadEjes]
# rta = configuracion.reporte_defecto[cantidadEjes]
rta
=
""
rta
=
""
#if rta in ["",False]:
#if rta in ["",False]:
# rta = configuracion.reporte_defecto[cantidadEjes]
# rta = configuracion.reporte_defecto[cantidadEjes]
#print(rta)
#print(rta)
print
(
f
"Error, reporte no encontrado {linea}, tipo: {tipo}, ejes {cantidadEjes}, convustible={conbustible}"
)
if
rta
==
""
:
print
(
f
"Error, reporte no encontrado {linea}, tipo: {tipo}, ejes {cantidadEjes}, convustible={conbustible}"
)
return
rta
return
rta
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