We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f0837d + 35e5bde commit 6070acfCopy full SHA for 6070acf
src/aapi/bases.py
@@ -11,11 +11,9 @@ def as_aapi_dict(self):
11
res = {}
12
13
if '_type' in attrs.fields_dict(self.__class__):
14
- if not self._type.startswith('Condition'):
+ if not self._type.startswith('Condition') and not self._type.startswith('Event'):
15
res['Type'] = self._type
16
- if not self._type.startswith('Event'):
17
- res['Type'] = self._type
18
-
+
19
if attrs.has(self):
20
for field in attrs.fields(self.__class__):
21
value = self.__getattribute__(field.name)
0 commit comments