This commit is contained in:
Dion Moult
2021-09-21 10:33:03 +10:00
parent f83d13b97c
commit 1d1e051e0f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -332,8 +332,7 @@ class file(object):
If the entity already exists, it is not re-added."""
if self.transaction:
# TODO confirm this method of tracking added elements and use MaxId directly instead of FreshId
max_id = self.wrapped_data.FreshId()
max_id = self.wrapped_data.getMaxId()
inst.wrapped_data.this.disown()
result = entity_instance(self.wrapped_data.add(inst.wrapped_data, -1 if _id is None else _id), self)
if self.transaction: