diff --git a/scripts/import_markdown.py b/scripts/import_markdown.py index 0c1b73e..6a7c74c 100644 --- a/scripts/import_markdown.py +++ b/scripts/import_markdown.py @@ -101,6 +101,9 @@ from app.core.qdrant_points import ( delete_by_note, ) +from app.core.env_vars import get_collection_prefix + + # Type-Registry optional laden (no-op, falls nicht vorhanden) try: from app.core.type_registry import load_type_registry # type: ignore @@ -199,7 +202,7 @@ def main(): print(json.dumps({"error": "vault_not_found", "path": str(vault_root)})) sys.exit(2) - prefix = args.prefix.strip() or os.environ.get("COLLECTION_PREFIX", "").strip() or "mindnet" + prefix = args.prefix.strip() or os.environ.get("COLLECTION_PREFIX", "").strip() or "mindnet" or get_collection_prefix(args.prefix) cfg = QdrantConfig.from_env(prefix=prefix) client = get_client(cfg) ensure_collections(client, cfg)