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 e063e952
authored
10 months ago
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Prueba
1 parent
1a574118
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
main.py
main.py
View file @
e063e95
...
...
@@ -8,6 +8,10 @@ from matematika import *
from
titulos
import
*
import
pruebas
class
MyCustomException
(
Exception
):
def
__init__
(
self
,
message
):
super
()
.
__init__
(
message
)
ing
=
ingenieros
.
ingenieros
()
FozaDiaria
=
fosadiaria
.
FosaDiaria
()
...
...
@@ -93,7 +97,7 @@ def login():
pasw
=
request
.
json
[
'contrasena'
]
print
(
user
,
pasw
,
pruebas
.
login
)
if
pruebas
.
login
[
user
]
!=
pasw
:
raise
(
)
raise
MyCustomException
(
"Ocurrió un error personalizado."
)
print
(
"Login user desarrollo"
)
response
=
make_response
(
redirect
(
url_for
(
'historico'
)))
#response = make_response('', 200)
...
...
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