fix: prompts-library - preserve excel jsonl row numbers

This commit is contained in:
tukuaiai
2026-05-02 04:01:07 +08:00
parent 8aa2d115f6
commit 0ea19ed655
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -336,7 +336,7 @@ def run_jsonl_excel_to_jsonl(excel_path: Path, project_root: Path) -> int:
sheet_lines.append(json.dumps({
"category_id": cat_id,
"category": cat_name,
"row": row_idx + 2,
"row": row_idx + 1,
"col": col_idx + 1,
"title": obj["title"][:80],
"content": obj["content"]
@@ -351,7 +351,7 @@ def run_jsonl_excel_to_jsonl(excel_path: Path, project_root: Path) -> int:
build_text_record(
cat_id=cat_id,
cat_name=cat_name,
row=row_idx + 2,
row=row_idx + 1,
col=col_idx + 1,
text=val_str,
)