refactor(855-E 2-E1): M01 옛 자동값 길 /logic/auto 걷음(M02 감싼 길 포함)
- 길 둘 걷음: GET /api/m01/logic/auto · /api/m02/logic-lib/logic/auto — 화면 부름 0(9c7807297 에 fetchAuto 걷음) · 서버 모듈 · B08 · B09 부름 0 · /openapi.json 476 → 474
- 본체 Store.auto 걷음 · 남김 = Store.mau(M02 Sangeun_Calc · Labor_Doc · Labor_Inputs · B09 Sangeun 이 옛 자동값 모듈을 바로 씀 · L2 ⓑ · B9 걸음 몫)
- 시험: 옛 자동값을 보던 test_m01_auto · _text · _pick · test_714_1 · test_751_3 은 helper_855_old_engine_routes.auto(같은 몸) · test_717_1 M02 /logic/auto 줄 걷음 · 걸린 시험 78 통과
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -175,12 +175,6 @@ def get_logic_source(src: str) -> dict:
|
||||
return _call(make.source, src)
|
||||
|
||||
|
||||
@router.get("/logic/auto")
|
||||
def get_logic_auto(key: str) -> dict:
|
||||
"""견본 입력 — 마스터 보기용 자동값(프로젝트 기본값 아님)."""
|
||||
return _call(store.auto, key)
|
||||
|
||||
|
||||
@router.get("/elements")
|
||||
def get_elements(group: str, q: str = "", limit: int = 50) -> dict:
|
||||
return _call(store.elements, group, q, limit)
|
||||
|
||||
@@ -19,7 +19,7 @@ SCRIPTS = Path(__file__).resolve().parents[1] / "resources/master_data/scripts"
|
||||
sys.path.insert(0, str(SCRIPTS))
|
||||
|
||||
import check_master as cm # noqa: E402
|
||||
import master_auto as mau # noqa: E402
|
||||
import master_auto as mau # noqa: E402,F401 (M02 `Sangeun_Calc` · `Labor_Doc` · `Labor_Inputs` · B09 `Sangeun` 가 `store.mau` 로 씀)
|
||||
import master_combo as mcb # noqa: E402,F401 (`_Store_Combo` 가 `store.mcb` 로 씀)
|
||||
import master_copy as mcp # noqa: E402,F401 (`_Store_Make` 가 `store.mcp` 로 씀)
|
||||
import master_keys as mk # noqa: E402
|
||||
@@ -539,15 +539,6 @@ def materials(sub: str, detail: str, spec: str, region: str, unit: str, limit: i
|
||||
}
|
||||
|
||||
|
||||
def auto(key: str) -> dict:
|
||||
"""견본 입력 — 마스터 보기용 자동값(`master_auto`) · 프로젝트 기본값 아님 · 저장 안 함."""
|
||||
whole = loaded()[1]
|
||||
try:
|
||||
return {"값": mau.values(whole, whole.logic(key))}
|
||||
except cm.mf.FormulaError as e:
|
||||
raise StoreError(404, str(e)) from e
|
||||
|
||||
|
||||
# ── 저장 ──────────────────────────────────────────────────────────────
|
||||
def _dec(v):
|
||||
"""화면이 보낸 수 → Decimal(파일을 읽은 모양과 같게)."""
|
||||
|
||||
Reference in New Issue
Block a user