25 lines
534 B
Python
25 lines
534 B
Python
"""采纳走 flow:记录 reviews.adopt,不直接写正文文件。"""
|
||
|
||
from __future__ import annotations
|
||
|
||
from muse.store import add_review
|
||
|
||
|
||
def adopt_candidate(
|
||
run_id: str,
|
||
reviewer: str,
|
||
reason: str,
|
||
*,
|
||
path: str | None = None,
|
||
) -> int:
|
||
"""人审采纳的唯一写入口。web 必须调用本函数,不得自行写库。"""
|
||
|
||
return add_review(
|
||
run_id=run_id,
|
||
target="candidate",
|
||
action="adopt",
|
||
reviewer=reviewer,
|
||
reason=reason,
|
||
path=path,
|
||
)
|