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 20407af1
authored
2023-10-04 18:21:00 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
a probar rc2
1 parent
9708f30f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
fosadiaria.py
main.py
fosadiaria.py
View file @
20407af
...
...
@@ -31,7 +31,7 @@ class FosaDiaria():
except
:
data
=
False
if
not
data
==
False
:
return
data
return
data
[
"hora"
]
try
:
self
.
ActualizarDatosDominios
(
selenium
,
dia
)
except
Exception
as
E
:
...
...
@@ -67,6 +67,8 @@ class FosaDiaria():
except
:
self
.
Cache
[
dia
]
=
{}
for
n
in
data
[
"domino"
]
.
keys
():
if
data
[
"resultado"
][
n
]
in
[
"No Inspeccionado"
,
"Anulado"
]:
continue
#print("key", n)
dominio
=
data
[
"domino"
][
n
]
#print(dominio,"dominio")
...
...
main.py
View file @
20407af
...
...
@@ -125,6 +125,7 @@ def anomalies():
except
:
s
.
driver
.
quit
()
return
f
"Error en el login"
fingfd
=
FozaDiaria
.
BuscarDatosDominio
(
plate
.
upper
(),
selenium
=
s
)
try
:
gototec
(
s
,
d
)
except
:
...
...
@@ -143,6 +144,7 @@ def anomalies():
s
.
driver
.
quit
()
anom
[
'header'
][
'patente'
]
=
plate
anom
[
'header'
][
'fecha'
]
=
datetime
.
datetime
.
now
()
.
strftime
(
"
%
d/
%
m/
%
Y"
)
anom
[
'header'
][
"hora"
]
=
str
(
fingfd
)
return
render_template
(
"anomalies.html"
,
anomalies
=
anom
)
@app.route
(
'/report'
,
methods
=
[
'POST'
])
...
...
@@ -165,10 +167,10 @@ def report():
answer
[
'header'
][
'patente'
]
=
plate
.
upper
()
answer
[
'header'
][
"fecha-hora"
]
=
apollo
.
estaticos
.
FechaHora
()
print
(
1
,
answer
)
#
print(1,answer)
answer
[
'header'
][
"ingeniero"
]
=
ing
.
LeerDatosUsuario
(
request
.
cookies
[
"login"
])[
'nombreyapellido'
]
#answer['header']["hora"] = apollo.estaticos.Hora()
print
(
2
,
answer
)
#
print(2,answer)
try
:
login
(
...
...
@@ -183,7 +185,7 @@ def report():
return
f
"Error en el login"
fingfd
=
FozaDiaria
.
BuscarDatosDominio
(
plate
.
upper
(),
selenium
=
s
)
print
(
3
,
answer
)
#
print(3,answer)
try
:
...
...
@@ -201,7 +203,7 @@ def report():
except
:
s
.
driver
.
quit
()
return
f
"Error completando datos extra de la patente '{plate}'."
print
(
answer
)
#
print(answer)
answer
[
'header'
][
"hora"
]
=
str
(
fingfd
)
s
.
driver
.
quit
()
...
...
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