kin: KIN-ARCH-006 Добавить autocommit_enabled и obsidian_vault_path в базовый SCHEMA
This commit is contained in:
parent
295a95bc7f
commit
7630736860
4 changed files with 58 additions and 5 deletions
|
|
@ -197,16 +197,17 @@ def create_task(
|
|||
forgejo_issue_id: int | None = None,
|
||||
execution_mode: str | None = None,
|
||||
category: str | None = None,
|
||||
acceptance_criteria: str | None = None,
|
||||
) -> dict:
|
||||
"""Create a task linked to a project."""
|
||||
conn.execute(
|
||||
"""INSERT INTO tasks (id, project_id, title, status, priority,
|
||||
assigned_role, parent_task_id, brief, spec, forgejo_issue_id,
|
||||
execution_mode, category)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
execution_mode, category, acceptance_criteria)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""",
|
||||
(id, project_id, title, status, priority, assigned_role,
|
||||
parent_task_id, _json_encode(brief), _json_encode(spec),
|
||||
forgejo_issue_id, execution_mode, category),
|
||||
forgejo_issue_id, execution_mode, category, acceptance_criteria),
|
||||
)
|
||||
conn.commit()
|
||||
return get_task(conn, id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue