Skip to content

Commit

Permalink
pre-commit reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Dec 12, 2024
1 parent 84318d0 commit a67ce74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions superset/jinja_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,8 @@ def get_filters(self, column: str, remove_filter: bool = False) -> list[Filter]:
flt.get("expressionType") == "SIMPLE"
and flt.get("clause") == "WHERE"
and val
):
if (
flt.get("subject") == column
) or (
):
if (flt.get("subject") == column) or (
isinstance(flt.get("subject"), dict)
and flt.get("subject").get("label") == column
):
Expand Down

0 comments on commit a67ce74

Please sign in to comment.