Skip to content

Commit

Permalink
fix(dashboard): make to filter the correct certified or non-certified…
Browse files Browse the repository at this point in the history
… dashboards
  • Loading branch information
prosdev0107 committed Mar 30, 2022
1 parent a8e7624 commit fe92e32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/dashboards/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,14 @@ def apply(self, query: Query, value: Any) -> Query:
return query.filter(
and_(
Dashboard.certified_by.isnot(None),
Dashboard.certified_by != '',
)
)
if value is False:
return query.filter(
and_(
or_(
Dashboard.certified_by.is_(None),
Dashboard.certified_by == '',
)
)
return query

0 comments on commit fe92e32

Please sign in to comment.