From 52ce51aac75064587749fa3cf6c7aa5ae3711dff Mon Sep 17 00:00:00 2001 From: king Date: Wed, 27 May 2026 00:22:16 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20=EC=97=91=EC=85=80=20?= =?UTF-8?q?=ED=99=95=EC=9E=A5=EC=9E=90=EB=A5=BC=20.xls=20=E2=86=92=20.xlsx?= =?UTF-8?q?=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 파일 내용은 openpyxl 로 작성된 xlsx 포맷이지만 확장자만 .xls 였던 것을 실제 포맷과 맞춰 .xlsx 로 정정. - 서버 다운로드 파일명 확장자 변경 - 프론트 fallback 파일명 변경 xls 파일을 "쓰는" 코드(xlwt 등)는 원래 없었음. xlrd 는 입력 파일(.xls) 을 "읽는" 용도라 유지. Co-Authored-By: Claude Sonnet 4.6 --- app/routers/orders.py | 4 ++-- static/js/app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/routers/orders.py b/app/routers/orders.py index 89e54bf..1d932a3 100644 --- a/app/routers/orders.py +++ b/app/routers/orders.py @@ -842,10 +842,10 @@ def upload_file( ) excel_io.seek(0) - # 6. 다운로드 파일명: "MM월 DD일 (요일)_발주_(낱개 상품 출고).xls" + # 6. 다운로드 파일명: "MM월 DD일 (요일)_발주_(낱개 상품 출고).xlsx" weekdays = ["월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"] weekday_str = weekdays[order_date_dt.weekday()] - filename = f"{order_date_dt.strftime('%m')}월 {order_date_dt.strftime('%d')}일 ({weekday_str})_발주_(낱개 상품 출고).xls" + filename = f"{order_date_dt.strftime('%m')}월 {order_date_dt.strftime('%d')}일 ({weekday_str})_발주_(낱개 상품 출고).xlsx" encoded_filename = quote(filename) headers = { diff --git a/static/js/app.js b/static/js/app.js index 160bc8b..9692a06 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -438,7 +438,7 @@ document.addEventListener('DOMContentLoaded', () => { }); if (response.ok) { - let downloadFilename = '낱개상품출고.xls'; + let downloadFilename = '낱개상품출고.xlsx'; const disposition = response.headers.get('Content-Disposition'); if (disposition && disposition.indexOf('filename*=') !== -1) { const matches = disposition.split("filename*=UTF-8''");