fix(persist/delete): delete explizitly

This commit is contained in:
Johannes Kirschbauer
2025-05-23 21:47:12 +02:00
parent 0bf183b73b
commit 9cea8e8901

View File

@@ -239,7 +239,8 @@ class InventoryStore:
for patch_path, data in patchset.items():
apply_patch(persisted, patch_path, data)
self.delete(delete_set, commit=False)
for delete_path in delete_set:
delete_by_path(persisted, delete_path)
with self.inventory_file.open("w") as f:
json.dump(persisted, f, indent=2)