diff --git a/manager/filters.py b/manager/filters.py index bde64b9fa..a14bb35b9 100644 --- a/manager/filters.py +++ b/manager/filters.py @@ -671,9 +671,9 @@ def _filter_cve_by_affecting_host_type(query, args, kwargs): expr = None for arg in affecting: if arg == HostType.RPMDNF: - expr |= fn.COALESCE(count_subquery.c.systems_affected_rpmdnf_, 0) != 0 + expr |= count_subquery.c.systems_affected_rpmdnf_ != 0 elif arg == HostType.EDGE: - expr |= fn.COALESCE(count_subquery.c.systems_affected_edge_, 0) != 0 + expr |= count_subquery.c.systems_affected_edge_ != 0 elif arg == HostType.NONE: expr |= (fn.COALESCE(count_subquery.c.systems_affected_rpmdnf_, 0) + fn.COALESCE(count_subquery.c.systems_affected_edge_, 0)) == 0 if expr: