fix(paths): 옛 자료 폴더 이동 뒤 서버 불러오기 복구 - 경로 상수만 old/ref 새 자리로

B05·B06·B08·B09·Z01·common_util 의 data_* 폴더·파일 이름 상수를 master_data/old · ref 의 새 이름으로 돌림. 로직은 그대로.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
2026-09-19 19:09:02 +09:00
co-authored by Claude Sonnet 5
parent cbb60ecb6e
commit ebd148c4e6
37 changed files with 109 additions and 84 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ SOURCE_OF = {
"work_item_forest": "pum_forest",
"work_item_const": "pum_const",
} # 이름표 `work_item_axis` 와 같은 이름
FOLDER = tables.RESOURCES / "data_work_item_master"
FOLDER = tables.RESOURCES / "master_data" / "old"
#: 불변 열쇠 칸 — ⚠ 데스크탑 서브 자료가 오면 칸 이름을 맞출 것(여기 한 곳)
KEY_FIELD = "work_item_key"
PATH_JOIN = " "
@@ -127,7 +127,7 @@ def base_rows(kind: str) -> list[dict[str, Any]]:
return rows
LINK_FOLDER = tables.RESOURCES / "data_work_item_link"
LINK_FOLDER = tables.RESOURCES / "master_data" / "old"
LINKED = "연결됨"
@@ -136,7 +136,7 @@ def linked_keys() -> frozenset[str]:
⚠ 목록을 코드에 안 둠 — 판정은 그 표 · 미판정은 안 이음(표의 `unconfirmed_action: do_not_link`).
"""
found = sorted(LINK_FOLDER.glob("work_item_link_*.json")) if LINK_FOLDER.is_dir() else []
found = sorted(LINK_FOLDER.glob("2_공종_산림건설_연결_*.json")) if LINK_FOLDER.is_dir() else []
if not found:
return frozenset()
links = _read(str(found[-1]), found[-1].stat().st_mtime_ns).get("links") or []