From ded617129ebc36cc5ff2f0cfd45c098469d96ed3 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 4 Aug 2026 18:20:21 +0900 Subject: [PATCH] =?UTF-8?q?fix(B03):=20upload-overview=20=EC=BB=AC?= =?UTF-8?q?=EB=9F=BC=EB=AA=85=20upload=5Fat=EC=9C=BC=EB=A1=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(input=5Ffiles=20=EC=8A=A4=ED=82=A4=EB=A7=88=20?= =?UTF-8?q?=EC=A0=95=ED=95=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 서버 테스트에서 발견 — input_files에는 created_at이 없고 upload_at이다. upload-overview 응답·Repository 조회 컬럼을 스키마에 맞춤. Co-Authored-By: Claude Opus 5 (1M context) --- B03_FileInput/B03_FileInput_Repository.py | 2 +- B03_FileInput/B03_FileInput_Router.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/B03_FileInput/B03_FileInput_Repository.py b/B03_FileInput/B03_FileInput_Repository.py index 9b472e82..d963108f 100644 --- a/B03_FileInput/B03_FileInput_Repository.py +++ b/B03_FileInput/B03_FileInput_Repository.py @@ -304,7 +304,7 @@ async def list_project_input_files( await cursor.execute( """ SELECT f.id, f.file_type, f.original_filename, f.file_size_mb, f.status, - f.created_at + f.upload_at FROM input_files f INNER JOIN ( SELECT MAX(id) AS id diff --git a/B03_FileInput/B03_FileInput_Router.py b/B03_FileInput/B03_FileInput_Router.py index f468ba44..3e15076c 100644 --- a/B03_FileInput/B03_FileInput_Router.py +++ b/B03_FileInput/B03_FileInput_Router.py @@ -656,7 +656,7 @@ async def get_project_upload_overview( original_filename=str(row["original_filename"]), file_size_mb=float(row["file_size_mb"] or 0.0), status=str(row["status"]), - uploaded_at=str(row["created_at"]) if row.get("created_at") else None, + uploaded_at=str(row["upload_at"]) if row.get("upload_at") else None, ) for row in files ],