Skip to content
Snippets Groups Projects

Improving the compare_entities functions

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -266,8 +266,8 @@ def compare_entities(old_entity: Entity, new_entity: Entity,
if not old_entity_attr_exists and not new_entity_attr_exists:
continue
if ((old_entity_attr_exists ^ new_entity_attr_exists)
or (oldattr != newattr)):
if ((old_entity_attr_exists != new_entity_attr_exists)
or (oldattr != newattr)):
if old_entity_attr_exists:
olddiff[attr] = oldattr
Loading