From 92e3600944a3ae1727cad89975c40fe9d40aad98 Mon Sep 17 00:00:00 2001 From: Teppei Fukuda Date: Mon, 6 Sep 2021 15:33:05 +0300 Subject: [PATCH] models: use published_states in JSON-LD to be aligned with HTML --- secfixes_tracker/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secfixes_tracker/models.py b/secfixes_tracker/models.py index 9301ca6..70134cc 100644 --- a/secfixes_tracker/models.py +++ b/secfixes_tracker/models.py @@ -54,7 +54,7 @@ class Vulnerability(db.Model): 'vector': self.cvss3_vector, }, 'ref': [ref.to_json_ld() for ref in self.references], - 'state': [state.to_json_ld() for state in self.states], + 'state': [state.to_json_ld() for state in self.published_states], 'cpeMatch': [cpe_match.to_json_ld() for cpe_match in self.cpe_matches], } -- GitLab