mirror of
https://github.com/hansjone/netx.git
synced 2026-10-16 07:40:45 +08:00
Improve biz-compare UX with guided create, sheet toggles, and per-run delete.
Also sticky template field headers and biz-state pause/start endpoints. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9b3e98ede5
commit
3d2489041a
12 changed files with 669 additions and 155 deletions
|
|
@ -235,6 +235,11 @@ def _replace_items(db: Session, task_id: str, items_in: list[dict[str, Any]]) ->
|
|||
)
|
||||
|
||||
|
||||
def set_task_status(db: Session, task_id: str, status: str) -> dict[str, Any]:
|
||||
"""Set lifecycle status: draft | running | paused | stopped."""
|
||||
return update_task(db, task_id, {"status": status})
|
||||
|
||||
|
||||
def update_task(db: Session, task_id: str, body: dict[str, Any]) -> dict[str, Any]:
|
||||
task = db.get(BizStateTask, task_id)
|
||||
if not task:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue