Skip to content

Commit 6070acf

Browse files
authored
Merge pull request #68 from controlm/behavior-of-events
events backward compatibility
2 parents 8f0837d + 35e5bde commit 6070acf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/aapi/bases.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ def as_aapi_dict(self):
1111
res = {}
1212

1313
if '_type' in attrs.fields_dict(self.__class__):
14-
if not self._type.startswith('Condition'):
14+
if not self._type.startswith('Condition') and not self._type.startswith('Event'):
1515
res['Type'] = self._type
16-
if not self._type.startswith('Event'):
17-
res['Type'] = self._type
18-
16+
1917
if attrs.has(self):
2018
for field in attrs.fields(self.__class__):
2119
value = self.__getattribute__(field.name)

0 commit comments

Comments
 (0)