fix: [transform] fixes bug with EventToRelations

pull/40/head
Christophe Vandeplas 2020-05-15 08:50:03 +02:00
parent ab28576c27
commit 32ccad30ec
1 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ def event_to_entity(e, link_style=LinkStyle.Normal, link_label=None, link_direct
link_style=link_style,
link_label=link_label,
link_direction=link_direction,
count_attributes=len(e['Event'].get('Attribute')),
count_objects=len(e['Event'].get('Object')),
count_attributes=len(e['Event'].get('Attribute') or ""),
count_objects=len(e['Event'].get('Object') or ""),
notes=notes,
bookmark=Bookmark.Green)