Spaces:
Running
Running
Fix test failures.
Browse files
lynxkite-app/src/lynxkite_app/main.py
CHANGED
@@ -56,8 +56,9 @@ def save(req: SaveRequest):
|
|
56 |
@app.post("/api/save")
|
57 |
async def save_and_execute(req: SaveRequest):
|
58 |
save(req)
|
59 |
-
|
60 |
-
|
|
|
61 |
return req.ws
|
62 |
|
63 |
|
|
|
56 |
@app.post("/api/save")
|
57 |
async def save_and_execute(req: SaveRequest):
|
58 |
save(req)
|
59 |
+
if req.ws.has_executor():
|
60 |
+
await req.ws.execute()
|
61 |
+
save(req)
|
62 |
return req.ws
|
63 |
|
64 |
|
lynxkite-core/src/lynxkite/core/workspace.py
CHANGED
@@ -171,7 +171,7 @@ class Workspace(BaseConfig):
|
|
171 |
data = node.data
|
172 |
op = catalog.get(data.title)
|
173 |
if op:
|
174 |
-
if data
|
175 |
data.meta = op
|
176 |
# If the node is connected to a CRDT, update that too.
|
177 |
if hasattr(node, "_crdt"):
|
|
|
171 |
data = node.data
|
172 |
op = catalog.get(data.title)
|
173 |
if op:
|
174 |
+
if getattr(data, "meta", None) != op:
|
175 |
data.meta = op
|
176 |
# If the node is connected to a CRDT, update that too.
|
177 |
if hasattr(node, "_crdt"):
|