fix(dashboard): make to filter the correct certified or non-certified… (#19429)
* fix(dashboard): make to filter the correct certified or non-certified dashboards * fix(dashboard): make to fix python lint issue
This commit is contained in:
parent
ad715429f9
commit
3ccfa564d7
|
|
@ -224,12 +224,14 @@ class DashboardCertifiedFilter(BaseFilter): # pylint: disable=too-few-public-me
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue