diff --git a/scripts/export_markdown.py b/scripts/export_markdown.py index 79a3584..0e41d0d 100644 --- a/scripts/export_markdown.py +++ b/scripts/export_markdown.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- """ Script: scripts/export_markdown.py — Qdrant → Markdown (Vault) -Version: 1.4.0 +Version: 1.4.1 Datum: 2025-09-10 Funktion @@ -194,7 +194,7 @@ def main() -> None: # Edges (optional) refs: List[str] = [] - if args.include-edges != "none": + if args.include_edges != "none": # aus Note-Payload, falls vorhanden if isinstance(pl.get("references"), list) and pl["references"]: refs = [r for r in pl["references"] if isinstance(r, str)] @@ -202,7 +202,7 @@ def main() -> None: flt_edges = rest.Filter(must=[rest.FieldCondition(key="note_id", match=rest.MatchValue(value=nid))]) edges = _scroll_all(client, edges_col, flt_edges) refs = _collect_forward_refs_from_edges(edges) - if args.include-edges == "yaml" and refs: + if args.include_edges == "yaml" and refs: fm["references"] = refs # Datei schreiben @@ -211,7 +211,7 @@ def main() -> None: continue content = _frontmatter_block(fm) + (body + "\n" if body else "") - if args.include-edges == "footer" and refs: + if args.include_edges == "footer" and refs: content += "\n---\nLinks:\n" + "\n".join(f"- [[{r}]]" for r in refs) + "\n" with open(out_path, "w", encoding="utf-8") as f: