Skip to content
Snippets Groups Projects
Verified Commit 4fdc9469 authored by Sarthik Gupta's avatar Sarthik Gupta :alien:
Browse files

fix: fixed the incorrect variable rename

parent 11abf85a
No related branches found
No related tags found
No related merge requests found
......@@ -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"""
redirectUrl = self._response[1].get("redirectUrl")
self._flask_response = make_response(redirect(redirectUrl))
redirect_url = self._response[1].get("redirectUrl")
self._flask_response = make_response(redirect(redirect_url))
def _handle_bad_request(self) -> None:
"""Handles the Status Code 400 Response"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment