knowledge(마스터): 옛 직종 이름 적용 — 준용대상 16 직종을 현행 줄 「옛이름」 으로 옮김 · 엔진 통합 차례 없앰
- 인력.json — 원문 확인 대응만 현행 줄에 옛이름 칸 + 짧은 이력 비고 · 옮긴 준용대상 16 줄 삭제(48 → 32) · 절단공은 철근 작업 한 줄만 철근공으로 가름 - _키대장.json — 옮긴 16 키에 「폐기 → 새 키」 - 로직 5 파일 89 호표 줄 — 현행 직종 키로 갈음 · 줄 비고에 「옛이름: ○○」 - 엔진·틀·빌더·M01 — 값 → 준용 → 산정 차례 · 옛이름 칸 읽기 전용 · 이름 찾기에 옛이름 걸림 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JgUhN55Z3BCYhUJTjwTNfj
This commit is contained in:
@@ -154,7 +154,7 @@ def _read(path: Path, exact: bool = True) -> dict:
|
||||
|
||||
def old_view(name: str, folder: Path = MASTER) -> dict:
|
||||
"""옛 파일 이름으로 읽기(빌더용 · 수는 float) — 줄의 「열쇠」 = 원문번호 · 키·갈래 칸 뺌.
|
||||
준용·통합·연결 같은 참조는 키 그대로."""
|
||||
준용·연결 같은 참조는 키 그대로."""
|
||||
m = re.match(r"^(인력|기계)_(.+)\.json$", name)
|
||||
if m:
|
||||
file, slot, labels = MERGED[m.group(1)]
|
||||
@@ -187,8 +187,8 @@ def _old_ref(book: dict, text: str) -> str:
|
||||
|
||||
|
||||
def _convert(book: dict, row: dict, names: dict) -> dict:
|
||||
"""줄 속 옛 참조 — 준용·통합 · 후보 글(키 옆 이름) · 품셈재료 연결 · 시중물가 조달 나라장터 연결."""
|
||||
for col in ("준용", "통합"):
|
||||
"""줄 속 옛 참조 — 준용 · 후보 글(키 옆 이름) · 품셈재료 연결 · 시중물가 조달 나라장터 연결."""
|
||||
for col in ("준용",):
|
||||
value = row.get(col)
|
||||
if isinstance(value, str) and ":" in value:
|
||||
row[col] = _old_ref(book, value)
|
||||
|
||||
Reference in New Issue
Block a user