Skip to content

Commit

Permalink
fix(dashboard): make to fix python lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prosdev0107 committed Apr 14, 2022
1 parent d4f9167 commit 69fc5d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/dashboards/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ def apply(self, query: Query, value: Any) -> Query:
return query.filter(
and_(
Dashboard.certified_by.isnot(None),
Dashboard.certified_by != '',
Dashboard.certified_by != "",
)
)
if value is False:
return query.filter(
or_(
Dashboard.certified_by.is_(None),
Dashboard.certified_by == '',
Dashboard.certified_by == "",
)
)
return query

0 comments on commit 69fc5d8

Please sign in to comment.