From 48c856ea8dfdd85bead1c1aaed7dd669da849c2b Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 7 Sep 2026 04:50:08 +0900 Subject: [PATCH] =?UTF-8?q?fix(=EA=B3=84=EC=B8=A1):=20B06=20=ED=99=95?= =?UTF-8?q?=EC=A0=95=20=EB=A7=88=ED=81=AC=EA=B0=80=20=EB=8B=A4=EB=A5=B8=20?= =?UTF-8?q?=ED=95=A8=EC=88=98=EC=97=90=20=EC=A0=95=EC=9D=98=EB=90=98?= =?UTF-8?q?=EB=8D=98=20=EA=B2=83=20=EB=B0=94=EB=A1=9C=EC=9E=A1=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `marks` 정의가 `save_sections` 에 들어가고 사용은 `confirm_sections` 에 남아 `NameError: name 'marks' is not defined` 로 [확인] 재계산이 500 으로 끝났음 (노선은 자동 롤백돼 자료 손상 없음). 정의를 쓰는 함수 안으로 옮기고 `save_sections` 의 잘못 들어간 두 줄 제거. 계측 항목은 그대로. Co-Authored-By: Claude Opus 5 (1M context) --- B06_Section/B06_Section_Router_Confirm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/B06_Section/B06_Section_Router_Confirm.py b/B06_Section/B06_Section_Router_Confirm.py index 8b5455f6..1f66658c 100644 --- a/B06_Section/B06_Section_Router_Confirm.py +++ b/B06_Section/B06_Section_Router_Confirm.py @@ -214,7 +214,6 @@ async def save_sections( 통째로 버려져 조작값이 사라진다. 그래서 여기서 정본 행을 만든다. """ pool = get_db_pool() - marks = [("시작", time.perf_counter())] try: async with pool.acquire() as connection: existing = await get_longitudinal_section(connection, project_id, route_id) @@ -243,8 +242,6 @@ async def save_sections( request.standard_cross_section if request else None, ) - marks.append(("기본설계 계산(미지정 측점)", time.perf_counter())) - async with pool.acquire() as connection: await connection.begin() try: @@ -287,6 +284,7 @@ async def confirm_sections( 자동 계산 체인용 — 데이터만 확정하고 stage 3을 IN_PROGRESS(검토 대기)로 남긴다. """ pool = get_db_pool() + marks = [("시작", time.perf_counter())] try: async with pool.acquire() as connection: existing = await get_longitudinal_section(connection, project_id, route_id) @@ -321,6 +319,8 @@ async def confirm_sections( request.standard_cross_section if request else None, ) + marks.append(("기본설계 계산(미지정 측점)", time.perf_counter())) + async with pool.acquire() as connection: await connection.begin() try: