beremiz

PY_EXT: fix wrong column header produced by csv_write_by_string.
py2compat
16 months ago, Edouard Tisserant
9e7283b30376
Parents bf3558468e3a
Children aa516096d22f
PY_EXT: fix wrong column header produced by csv_write_by_string.
--- a/py_ext/py_ext_rt.py Fri Feb 07 14:19:42 2025 +0100
+++ b/py_ext/py_ext_rt.py Fri Feb 07 14:29:11 2025 +0100
@@ -267,7 +267,7 @@
except KeyError:
# adjust col headers content
first_row = data[0]
- first_row += [""]*(max_row_len - len(first_row)) + [rowname]
+ first_row += [""]*(max_row_len - len(first_row)) + [colname]
# create a new column
colidx = col_headers[colname] = max_row_len
max_row_len = max_row_len + 1