Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor-Weather
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bauruine
Tor-Weather
Commits
4fdc9469
Verified
Commit
4fdc9469
authored
2 years ago
by
Sarthik Gupta
Browse files
Options
Downloads
Patches
Plain Diff
fix: fixed the incorrect variable rename
parent
11abf85a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/src/core/services/response.py
+4
-4
4 additions, 4 deletions
backend/src/core/services/response.py
with
4 additions
and
4 deletions
backend/src/core/services/response.py
+
4
−
4
View file @
4fdc9469
...
...
@@ -106,16 +106,16 @@ class ResponseService:
def
_handle_success
(
self
)
->
None
:
"""
Handles the Status Code 200 Responses
"""
render_template
=
self
.
_response
[
1
].
get
(
"
renderTemplate
"
)
render_template
_val
=
self
.
_response
[
1
].
get
(
"
renderTemplate
"
)
message
=
self
.
_response
[
1
].
get
(
"
message
"
)
self
.
_flask_response
=
make_response
(
render_template
(
render_template
,
snackbar
=
message
)
render_template
(
render_template
_val
,
snackbar
=
message
)
)
def
_handle_redirect
(
self
)
->
None
:
"""
Handles the Status Code 302 Response
"""
redirect
U
rl
=
self
.
_response
[
1
].
get
(
"
redirectUrl
"
)
self
.
_flask_response
=
make_response
(
redirect
(
redirect
U
rl
))
redirect
_u
rl
=
self
.
_response
[
1
].
get
(
"
redirectUrl
"
)
self
.
_flask_response
=
make_response
(
redirect
(
redirect
_u
rl
))
def
_handle_bad_request
(
self
)
->
None
:
"""
Handles the Status Code 400 Response
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment