mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Scenario: Add memory clean for Pamhyr list, dict and reaches.
This commit is contained in:
1 parent
2c0b155baf
commit
f9d83ac68c
6 files changed
+65
-7
No files matched your search
@@ -103,6 +103,9 @@ class Reach(SQLSubModel):
|
||||
predicate=lambda obj, data: True,
|
||||
modifier=lambda obj, data: None,
|
||||
data={}):
|
||||
if predicate(self, data):
|
||||
modifier(self, data)
|
||||
|
||||
for p in self._profiles:
|
||||
p._data_traversal(predicate, modifier, data)
|
||||
|
||||
|
||||
Reference in new issue
Block a user