first commit
Build and deploy / build-and-push (push) Successful in 17s
Build and deploy / deploy (push) Successful in 10s

This commit is contained in:
william
2026-08-21 16:23:49 +02:00
committed by william
commit 3f4ebc4527
248 changed files with 10180 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import db
def add_flow_edge(slug, screen_id, from_node_id, from_port, to_node_id):
conn = db.connect(slug)
conn.execute(
"INSERT INTO _flow_edges (screen_id, from_node_id, from_port, to_node_id) VALUES (?, ?, ?, ?)",
(screen_id, from_node_id, from_port or "out", to_node_id),
)
edge_id = conn.execute("SELECT last_insert_rowid() AS id").fetchone()["id"]
conn.commit()
conn.close()
return edge_id