Skip to content

Commit

Permalink
Uses destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Sep 14, 2022
1 parent eec945e commit 2bff584
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,7 @@ def get_redirect_url(self) -> str:
)
datasource = parsed_form_data.get("datasource")
if datasource:
parts = datasource.split("__")
datasource_id = parts[0]
datasource_type = parts[1]
datasource_id, datasource_type = datasource.split("__")
parameters = CommandParameters(
datasource_id=datasource_id,
datasource_type=datasource_type,
Expand Down

0 comments on commit 2bff584

Please sign in to comment.