MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / __init__

Method __init__

bbot/db/sql/models.py:72–77  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

70
71class Event(BBOTBaseModel, table=True):
72 def __init__(self, *args, **kwargs):
73 super().__init__(*args, **kwargs)
74 data = self._get_data(self.data, self.type)
75 self.data = {self.type: data}
76 if self.host:
77 self.reverse_host = self.host[::-1]
78
79 def get_data(self):
80 return self._get_data(self.data, self.type)

Callers 1

__init__Method · 0.45

Calls 1

_get_dataMethod · 0.95

Tested by

no test coverage detected