Spaces:
Running
Running
Ignore comment changes.
Browse files
lynxkite-app/src/lynxkite_app/crdt.py
CHANGED
@@ -117,6 +117,7 @@ last_ws_input = None
|
|
117 |
|
118 |
|
119 |
def clean_input(ws_pyd):
|
|
|
120 |
for node in ws_pyd.nodes:
|
121 |
node.data.display = None
|
122 |
node.data.input_metadata = None
|
@@ -125,6 +126,8 @@ def clean_input(ws_pyd):
|
|
125 |
for p in list(node.data.params):
|
126 |
if p.startswith("_"):
|
127 |
del node.data.params[p]
|
|
|
|
|
128 |
node.position.x = 0
|
129 |
node.position.y = 0
|
130 |
if node.model_extra:
|
|
|
117 |
|
118 |
|
119 |
def clean_input(ws_pyd):
|
120 |
+
"""Delete everything that we want to ignore for the purposes of change detection."""
|
121 |
for node in ws_pyd.nodes:
|
122 |
node.data.display = None
|
123 |
node.data.input_metadata = None
|
|
|
126 |
for p in list(node.data.params):
|
127 |
if p.startswith("_"):
|
128 |
del node.data.params[p]
|
129 |
+
if node.data.title == "Comment":
|
130 |
+
node.data.params = {}
|
131 |
node.position.x = 0
|
132 |
node.position.y = 0
|
133 |
if node.model_extra:
|