added stop/resume on found the first item
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user