fix(cupang): 열 너비를 픽셀 기준으로 (A=10, C·D·E=106)
구글 시트 요청에 pixelSize 를 8배로 넣어 A열이 80px 로 벌어져 있었다. WIDTHS_PX 를 픽셀 그대로 쓰고, xlsx 는 px/7 로 환산한다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ class GoogleSheetsWriter:
|
||||
first_col: int,
|
||||
last_col: int,
|
||||
title_row: int,
|
||||
widths: dict[int, int],
|
||||
widths: dict[int, int], # 열 번호(1-based) -> 픽셀
|
||||
header_bg: str = "",
|
||||
row_highlights: list[tuple[int, int, str]] | None = None,
|
||||
) -> dict[str, Any]:
|
||||
@@ -280,7 +280,7 @@ class GoogleSheetsWriter:
|
||||
"sheetId": sheet_id, "dimension": "COLUMNS",
|
||||
"startIndex": col - 1, "endIndex": col,
|
||||
},
|
||||
"properties": {"pixelSize": int(width) * 8},
|
||||
"properties": {"pixelSize": int(width)},
|
||||
"fields": "pixelSize",
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user