ruff 글로브를 `resources/tester/*.py` 로 넓게 잡아 내 작업과 무관한 시험 파일까지 서식이 바뀌었음. 다른 창이 그 파일을 만지면 충돌만 남으므로 되돌림. 내가 실제로 고친 다섯(열쇠 장부·Z01 둘·표 읽기·못 읽은 표)만 남김. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsGw1Dz9HmhuAxGisxmDPF
28 lines
791 B
Python
28 lines
791 B
Python
# -*- coding: utf-8 -*-
|
|
"""코리도 사전 생성 실경로 점검 — 실제 DB·실제 프로젝트로 한 번 돌려 본다(수동 실행)."""
|
|
import asyncio
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
from config.config_db import close_db_pool, init_db_pool # noqa: E402
|
|
from B05_Profile.B05_Profile_Corridor_Prebuild import prebuild_corridor # noqa: E402
|
|
|
|
PROJECT_ID = "5cff3920-a181-4a3d-bec0-e0ac4082b75d"
|
|
ROUTE_ID = 139
|
|
PROJECT_ROOT = ROOT / "storage" / "1" / "3" / PROJECT_ID
|
|
|
|
|
|
async def main() -> None:
|
|
await init_db_pool()
|
|
try:
|
|
ok = await prebuild_corridor(PROJECT_ID, ROUTE_ID, PROJECT_ROOT)
|
|
print("사전 생성:", ok)
|
|
finally:
|
|
await close_db_pool()
|
|
|
|
|
|
asyncio.run(main())
|