Spaces:
Sleeping
Sleeping
Commit ·
8d7e6fd
1
Parent(s): 6cdfa08
fix: 출력 CSV BOM 이중 삽입 제거
Browse filesutf-8-sig 인코딩이 BOM을 자동으로 추가하는데 수동으로도 추가해서
헤더가 깨지는 문제 수정
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -192,7 +192,7 @@ def process_csv(file):
|
|
| 192 |
tmp = tempfile.NamedTemporaryFile(
|
| 193 |
delete=False, suffix=".csv", mode="w", encoding="utf-8-sig", newline=""
|
| 194 |
)
|
| 195 |
-
tmp.write(
|
| 196 |
tmp.close()
|
| 197 |
|
| 198 |
return tmp.name, f"✅ {count}건 처리 완료"
|
|
|
|
| 192 |
tmp = tempfile.NamedTemporaryFile(
|
| 193 |
delete=False, suffix=".csv", mode="w", encoding="utf-8-sig", newline=""
|
| 194 |
)
|
| 195 |
+
tmp.write(out.getvalue())
|
| 196 |
tmp.close()
|
| 197 |
|
| 198 |
return tmp.name, f"✅ {count}건 처리 완료"
|