Skip to content

Commit

Permalink
fix: [event-report] Make sure to generate an UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
mokaddem committed Apr 29, 2024
1 parent f043718 commit d03cea7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pymisp/mispevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,11 @@ class MISPEventReport(AnalystDataBehaviorMixin):

timestamp: float | int | datetime

def __init__(self, **kwargs):
super().__init__(**kwargs)
self.uuid: str = str(uuid.uuid4())


def from_dict(self, **kwargs) -> None: # type: ignore[no-untyped-def]
if 'EventReport' in kwargs:
kwargs = kwargs['EventReport']
Expand Down

0 comments on commit d03cea7

Please sign in to comment.