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
+25
View File
@@ -0,0 +1,25 @@
import db
def add_action(
slug, element_id, trigger_event, action_type, target_screen_id=None,
target_element_id=None, element_property=None, element_value=None,
target_definition_id=None, target_row_id=None, target_field=None,
data_operation=None, data_value=None,
):
conn = db.connect(slug)
conn.execute(
"""INSERT INTO _actions
(element_id, trigger_event, action_type, target_screen_id,
target_element_id, element_property, element_value,
target_definition_id, target_row_id, target_field, data_operation, data_value)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
(
element_id, trigger_event, action_type, target_screen_id or None,
target_element_id or None, element_property or None, element_value or None,
target_definition_id or None, target_row_id or None, target_field or None,
data_operation or None, data_value or None,
),
)
conn.commit()
conn.close()