From 7a265e5db42e18daf220d22e9ddb4540270dd3a2 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 8 Aug 2026 16:54:29 +0900 Subject: [PATCH] =?UTF-8?q?fix(B07):=20=EC=88=98=EB=9F=89=20=ED=99=95?= =?UTF-8?q?=EC=A0=95=EC=9D=B4=20=ED=95=AD=EC=83=81=20500=20=E2=80=94=20get?= =?UTF-8?q?=5Fdb=5Fpool()=EC=97=90=20=EC=9E=98=EB=AA=BB=20=EB=B6=99?= =?UTF-8?q?=EC=9D=80=20await=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_db_pool()은 동기 함수인데 B07만 await로 불렀다. 그 결과 풀 대신 _PoolConnectionContextManager가 잡혀 acquire()에서 터졌다. AttributeError: '_PoolConnectionContextManager' object has no attribute 'acquire' 좌측 패널 [확정]을 누를 때마다 stage 4가 전이되지 않고 500이 났다(서버 로그 확인). 프로젝트 안에서 await를 붙인 호출부는 여기 한 곳뿐이다. ruff format·check 통과. Co-Authored-By: Claude Opus 5 (1M context) --- B07_Quantity/B07_Quantity_Router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/B07_Quantity/B07_Quantity_Router.py b/B07_Quantity/B07_Quantity_Router.py index 934f2f95..44a5d216 100644 --- a/B07_Quantity/B07_Quantity_Router.py +++ b/B07_Quantity/B07_Quantity_Router.py @@ -21,7 +21,7 @@ router = APIRouter(prefix="/api/projects", tags=["B07 Quantity"]) @router.post("/{project_id}/quantity/confirm") async def confirm_quantity(project_id: UUID) -> JSONResponse: """수량 단계 확정 — stage 4(QUANTITY)를 COMPLETE로 전이한다 (본문 미구현).""" - pool = await get_db_pool() + pool = get_db_pool() async with pool.acquire() as connection: try: async with connection.cursor() as cursor: