Add missing imports and clear backlink index

Resolve build index regression causing stale backlink data on reindex.
This commit is contained in:
Bruno Charest 2026-05-26 10:35:22 -04:00
parent 482937fb30
commit ed2bb4f7fb
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# Revoked token JTIs persisted to data/revoked_tokens.json.
import json
import os
import secrets
import uuid
import time

View File

@ -332,6 +332,7 @@ async def build_index(progress_callback=None) -> None:
index.clear()
_file_lookup.clear()
path_index.clear()
_backlink_index.clear()
_index_generation += 1
if not vault_config: