diff --git a/secfixes_tracker/models.py b/secfixes_tracker/models.py index 9301ca61744b7fffd8e54e241d7b9c3798229bef..70134ccce30eab9c34186d16f9b4a17a5e7e61cd 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], }