Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/aapi/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ def as_aapi_dict(self):
res = {}

if '_type' in attrs.fields_dict(self.__class__):
if not self._type.startswith('Condition'):
if not self._type.startswith('Condition') and not self._type.startswith('Event'):
res['Type'] = self._type
if not self._type.startswith('Event'):
res['Type'] = self._type


if attrs.has(self):
for field in attrs.fields(self.__class__):
value = self.__getattribute__(field.name)
Expand Down