Add missing imports and clear backlink index
Resolve build index regression causing stale backlink data on reindex.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
# Revoked token JTIs persisted to data/revoked_tokens.json.
|
# Revoked token JTIs persisted to data/revoked_tokens.json.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import os
|
||||||
import secrets
|
import secrets
|
||||||
import uuid
|
import uuid
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -332,6 +332,7 @@ async def build_index(progress_callback=None) -> None:
|
|||||||
index.clear()
|
index.clear()
|
||||||
_file_lookup.clear()
|
_file_lookup.clear()
|
||||||
path_index.clear()
|
path_index.clear()
|
||||||
|
_backlink_index.clear()
|
||||||
_index_generation += 1
|
_index_generation += 1
|
||||||
|
|
||||||
if not vault_config:
|
if not vault_config:
|
||||||
|
|||||||
Reference in New Issue
Block a user