Initial commit – AufmaßCreater v2.35

This commit is contained in:
2026-06-10 11:03:43 +02:00
commit 84c933ea9c
2823 changed files with 490495 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import json
def capture_diff(obj, new_state):
"""Return a dict mapping field -> (old, new) for changed fields."""
old_state = {k: getattr(obj, k) for k in obj.__dict__ if not k.startswith('_')}
diff = {}
for k, new_val in new_state.items():
old_val = old_state.get(k)
if old_val != new_val:
diff[k] = (old_val, new_val)
return diff