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 baea502e
authored
10 months ago
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tolerancia a error de categoria
1 parent
d8151402
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
reportes.py
reportes.py
View file @
baea502
...
...
@@ -3,7 +3,7 @@ import json, configuracion
def
BuscarReporteDefecto
(
linea
,
tipo
,
cantidadEjes
=
2
):
linea
=
str
(
linea
)
cantidadEjes
=
str
(
cantidadEjes
)
tipo
=
tipo
.
upper
()
tipo
=
str
(
tipo
)
.
upper
()
with
open
(
"data/reportes.json"
,
'r'
)
as
f
:
data
=
json
.
load
(
f
)
try
:
...
...
@@ -13,7 +13,7 @@ def BuscarReporteDefecto(linea,tipo,cantidadEjes=2):
rta
=
configuracion
.
reporte_defecto
if
rta
in
[
""
,
False
]:
rta
=
configuracion
.
reporte_defecto
[
cantidadEjes
]
print
(
rta
)
#
print(rta)
return
rta
This diff is collapsed.
Click to expand it.
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