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
+2 -2
View File
@@ -19,7 +19,7 @@ from functools import lru_cache
from pathlib import Path
from typing import Any
FOLDER = Path(__file__).resolve().parent.parent / "resources" / "data_work_item_link"
FOLDER = Path(__file__).resolve().parent.parent / "resources" / "master_data" / "old"
CONFIRMED = "확정"
#: 표 `policy.both_precedence` 낱말 → 그 행의 열쇠 칸
_KEY_COLUMN = {"forest": "forest_key", "construction": "const_key"}
@@ -39,7 +39,7 @@ def _read(path: str, _mtime_ns: int) -> dict[str, Any]:
def _doc() -> dict[str, Any]:
found = sorted(FOLDER.glob("work_item_link_*.json")) if FOLDER.is_dir() else []
found = sorted(FOLDER.glob("2_공종_산림건설_연결_*.json")) if FOLDER.is_dir() else []
return _read(str(found[-1]), found[-1].stat().st_mtime_ns) if found else {}