From f8cab408f39bb8f6b793021cdfbf93338fb6ed0a Mon Sep 17 00:00:00 2001
From: gongzt <gong_zhengtang@163.com>
Date: Wed, 20 Dec 2023 15:13:07 +0800
Subject: [PATCH] Fix the query error of cve associated host
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 apollo/database/proxy/cve.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apollo/database/proxy/cve.py b/apollo/database/proxy/cve.py
index 6210156..b5a61b9 100644
--- a/apollo/database/proxy/cve.py
+++ b/apollo/database/proxy/cve.py
@@ -1532,6 +1532,7 @@ class CveProxy(CveMysqlProxy, CveEsProxy):
     def _get_processed_cve_packages_host(self, data):
         result = {"total_count": 0, "total_page": 0, "result": []}
         filters = {
+            CveHostAssociation.host_user == data["username"],
             CveHostAssociation.cve_id == data["cve_id"],
             CveHostAssociation.installed_rpm == data["installed_rpm"],
             CveHostAssociation.fixed == data["fixed"],
-- 
2.33.0

