From 36172ad8b32214a3ef800263bc6a510d1a12e1fe Mon Sep 17 00:00:00 2001 From: Nicolas Thumann Date: Wed, 8 Nov 2023 15:40:52 +0100 Subject: [PATCH] Fix: Add missing __str__ --- pontos/nvd/models/cve_change.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pontos/nvd/models/cve_change.py b/pontos/nvd/models/cve_change.py index 291347022..72540e088 100644 --- a/pontos/nvd/models/cve_change.py +++ b/pontos/nvd/models/cve_change.py @@ -25,7 +25,6 @@ from pontos.models import Model -@dataclass class EventName(str, Enum): INITAL_ANALYSIS = "Initial Analysis" REANALYSIS = "Reanalysis" @@ -39,6 +38,9 @@ class EventName(str, Enum): CVE_REJECTED = "CVE Rejected" CVE_UNREJECT = "CVE Unreject" + def __str__(self) -> str: + return self.value + @dataclass class Detail: