MVS adapter: When flattening ModelRefs, prefix the names of all elements in ref'ed models

This commit is contained in:
Joeri Exelmans 2024-09-10 13:41:21 +02:00
parent ae5eaedb4b
commit 99bcf9a542
2 changed files with 12 additions and 21 deletions

View file

@ -12,7 +12,7 @@ class Integer:
def create(self, value: int):
# delete existing integer, if there is one
if "string" in self.bottom.read_keys(self.model):
if "integer" in self.bottom.read_keys(self.model):
instance, = self.bottom.read_outgoing_elements(self.model, "integer")
self.bottom.delete_element(instance)
_instance = self.bottom.create_node(value)