added stop/resume on found the first item

This commit is contained in:
2026-06-30 19:20:06 +03:30
parent 42ddcdd22e
commit 78265d92ba
5 changed files with 16 additions and 2 deletions
+2
View File
@@ -86,6 +86,7 @@ class FlowConfigIn(BaseModel):
target_item_ids: list[str] = []
target_url: str = ""
scenario: str = "dynamic"
stop_on_first_click: bool = False
def _to_db_dict(body: FlowConfigIn) -> dict[str, Any]:
@@ -113,6 +114,7 @@ def _to_db_dict(body: FlowConfigIn) -> dict[str, Any]:
"target_item_ids_json": body.target_item_ids,
"target_url": body.target_url,
"scenario": body.scenario,
"stop_on_first_click": int(body.stop_on_first_click),
}