Skip to content

Commit

Permalink
Fix: Add missing __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann authored and greenbonebot committed Nov 10, 2023
1 parent 8effd1d commit a232c8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontos/nvd/models/cve_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from pontos.models import Model


@dataclass
class EventName(str, Enum):
INITAL_ANALYSIS = "Initial Analysis"
REANALYSIS = "Reanalysis"
Expand All @@ -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:
Expand Down

0 comments on commit a232c8f

Please sign in to comment.