Skip to content

Commit

Permalink
update per comment
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Oct 14, 2024
1 parent 8edc780 commit 4f9865d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sempy_labs/tom/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4f9865d

Please sign in to comment.