feat(831-1): 단가산출 기초 목록 책 차례 = 건설품셈 → 산림품셈 → 자체

- 정본 = 장 파일 머리 「차례」(order_chapters) — 건설 공통·토목·건축·기계설비·유지관리 → 산림 → 자체 로 다시 매김(소요량 · 계수 · 로직 144 파일 머리 한 줄씩)
- 「차례」 없는 파일(자체)은 맨 뒤 — chapter_order 한 곳 · M01 목록 · 로직 목록 · M02 기준 목록 셈 순서가 같이 따름
- 낡은 시험 test_m01_api 의 산림 먼저 단정 2 줄 고침 · 지킴 시험 test_843_book_order 추가
- 로직 내용 · 키 · 금액 그대로

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 09:43:23 +09:00
co-authored by Claude Sonnet 5.5
parent 4aba3bfe53
commit e4580ecf09
146 changed files with 183 additions and 150 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ def build(files: dict, workers: int = 1) -> dict:
blocked = {k for k, why in why_of.items() if why}
keys = [
str(logic.get("키"))
for _, data in sorted(m01._logic_files(files), key=lambda f: f[1].get("차례") or 0)
for _, data in sorted(m01._logic_files(files), key=lambda f: m01.chapter_order(f[1]))
for logic in data.get("줄") or []
]
size = max(1, len(keys) // (workers * 8))