Skip to content
Snippets Groups Projects
Commit c079e023 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: compare function did not check units

parent e7b7de3f
Branches
Tags
1 merge request!38FIX: compare function did not check units
Pipeline #17524 passed
This commit is part of merge request !38. Comments created here will be created in the context of that merge request.
......@@ -637,6 +637,11 @@ def compare_entities(old_entity: Entity, new_entity: Entity):
newdiff["properties"][prop.name]["datatype"] = \
matching[0].datatype
if (prop.unit != matching[0].unit):
olddiff["properties"][prop.name]["unit"] = prop.unit
newdiff["properties"][prop.name]["unit"] = \
matching[0].unit
if (prop.value != matching[0].value):
olddiff["properties"][prop.name]["value"] = prop.value
newdiff["properties"][prop.name]["value"] = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment