Skip to content

Commit

Permalink
Fixes lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Sep 14, 2022
1 parent 2bff584 commit c95e5a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ def import_dashboards(self) -> FlaskResponse:
"superset/import_dashboards.html", databases=databases
)

def get_redirect_url(self) -> str:
@staticmethod
def get_redirect_url() -> str:
"""Assembles the redirect URL to the new endpoint. It also replaces
the form_data param with a form_data_key by saving the original content
to the cache layer.
Expand Down Expand Up @@ -787,7 +788,7 @@ def explore(
self.__class__.__name__,
)
if request.method == "GET":
return redirect(self.get_redirect_url())
return redirect(Superset.get_redirect_url())

initial_form_data = {}

Expand Down

0 comments on commit c95e5a0

Please sign in to comment.