[15.0][FIX] excel_import_export, excel_import_export_demo:

fix from PR #2283 together with @luc-demeyer suggestion #2283 (review)
pull/2329/head
Mantux11 2022-12-30 14:39:10 +00:00
parent f94ba4fc5c
commit 5a7ce8573e
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ def _add_id_column(file_txt):
if line and i == 0: if line and i == 0:
line = '"id",' + line line = '"id",' + line
elif line: elif line:
line = "{}.{}".format("xls", uuid.uuid4()) + "," + line line = f"__excel_import_export__.{uuid.uuid4()},{line}"
txt_lines.append(line) txt_lines.append(line)
i += 1 i += 1
file_txt = "\n".join(txt_lines) file_txt = "\n".join(txt_lines)