fix(계측): B06 확정 마크가 다른 함수에 정의되던 것 바로잡음
`marks` 정의가 `save_sections` 에 들어가고 사용은 `confirm_sections` 에 남아 `NameError: name 'marks' is not defined` 로 [확인] 재계산이 500 으로 끝났음 (노선은 자동 롤백돼 자료 손상 없음). 정의를 쓰는 함수 안으로 옮기고 `save_sections` 의 잘못 들어간 두 줄 제거. 계측 항목은 그대로. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user