From 4f9865d779cf2da8fdc2284a1969815f57bcb8ea Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Oct 2024 09:32:15 +0200 Subject: [PATCH] update per comment --- src/sempy_labs/tom/_model.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sempy_labs/tom/_model.py b/src/sempy_labs/tom/_model.py index 4782fcf2..a2414ba9 100644 --- a/src/sempy_labs/tom/_model.py +++ b/src/sempy_labs/tom/_model.py @@ -4308,11 +4308,10 @@ def add_changed_property(self, object, property: str): import Microsoft.AnalysisServices.Tabular as TOM - cp = TOM.ChangedProperty() - cp.Property = property - # Only add the property if it does not already exist for that object if not any(c.Property == property for c in object.ChangedProperties): + cp = TOM.ChangedProperty() + cp.Property = property object.ChangedProperties.Add(cp) def remove_changed_property(self, object, property: str):