fix: read_xlsx_xml MUST use max_rows=9999 — итоги в конце файлов
Claude генерировал read_xlsx_xml(path) без max_rows → default=50 строк → итоги на строке 168+ не видны → "Не найдены итоговые суммы". Добавлено IMPORTANT в промпт: ALWAYS pass max_rows=9999. Протестировано на сервере: 2/2 файла, 0 ошибок, значения корректны. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -241,6 +241,7 @@ The script must handle any file with the same general structure as the samples.
|
||||
- `target_file`: str — path to target xlsx (a copy, safe to modify)
|
||||
- `job`: dict — job["processed"] += 1 per file, job["errors"].append("msg") for errors
|
||||
- `read_xlsx_xml(path, max_rows=9999)`: dict[sheet_name, list[list[str]]]
|
||||
IMPORTANT: ALWAYS pass max_rows=9999! Default is only 50 rows — totals are at the END of files!
|
||||
Column indices: A=0, B=1, C=2, ..., H=7, etc. Values are strings.
|
||||
- `openpyxl`: for writing to target xlsx
|
||||
- `Path`, `csv`, `json`, `re`, `os`
|
||||
|
||||
Reference in New Issue
Block a user