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
apache#19429)

* fix(dashboard): make to filter the correct certified or non-certified dashboards

* fix(dashboard): make to fix python lint issue
  • Loading branch information
prosdev0107 committed May 11, 2022
1 parent bc1ec93 commit 05100ed
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 @@ -224,12 +224,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 05100ed

Please sign in to comment.