some more fixing, activating a changeset seems to work now… ish
This commit is contained in:
parent
29e73ba55c
commit
de37888d50
2 changed files with 6 additions and 2 deletions
|
@ -589,10 +589,11 @@ class ChangedObjectCollection(BaseSchema):
|
|||
ended_situations.append(situation)
|
||||
|
||||
if done_situation:
|
||||
return DatabaseOperationCollection(
|
||||
result = DatabaseOperationCollection(
|
||||
prev=self.prev,
|
||||
_operations=done_situation.operations,
|
||||
)
|
||||
result.extend(done_situation.operations)
|
||||
return result
|
||||
|
||||
# todo: what to do if we can't fully solve it?
|
||||
raise NotImplementedError('couldnt fully solve as_operations')
|
||||
|
|
|
@ -203,6 +203,9 @@ class DatabaseOperationCollection(BaseSchema):
|
|||
def __len__(self):
|
||||
return len(self._operations)
|
||||
|
||||
def extend(self, items: list[DatabaseOperation]):
|
||||
self._operations.extend(items)
|
||||
|
||||
def append(self, item: DatabaseOperation):
|
||||
self._operations.append(item)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue