Skip to content

Commit

Permalink
replace to self.extra
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Jun 23, 2023
1 parent f6a67c6 commit 4c3c03b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions superset/models/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,6 @@ class TabState(Model, AuditMixinNullable, ExtraJSONMixin):
saved_query = relationship("SavedQuery", foreign_keys=[saved_query_id])

def to_dict(self) -> dict[str, Any]:
try:
extra_json = json.loads(self.extra_json)
except json.JSONDecodeError:
extra_json = None

return {
"id": self.id,
"user_id": self.user_id,
Expand All @@ -507,7 +502,7 @@ def to_dict(self) -> dict[str, Any]:
"template_params": self.template_params,
"hide_left_bar": self.hide_left_bar,
"saved_query": self.saved_query.to_dict() if self.saved_query else None,
"extra_json": extra_json,
"extra_json": self.extra,
}


Expand Down

0 comments on commit 4c3c03b

Please sign in to comment.