This commit is contained in:
Nick Sweeting
2025-12-28 17:51:54 -08:00
parent 54f91c1339
commit f0aa19fa7d
157 changed files with 6774 additions and 5061 deletions

View File

@@ -23,7 +23,7 @@ from archivebox.misc.logging import stderr
from archivebox.config.common import SEARCH_BACKEND_CONFIG
if TYPE_CHECKING:
from core.models import Snapshot
from archivebox.core.models import Snapshot
# Cache discovered backends to avoid repeated filesystem scans
@@ -80,7 +80,7 @@ def query_search_index(query: str) -> QuerySet:
Returns a QuerySet of Snapshot objects matching the search.
"""
from core.models import Snapshot
from archivebox.core.models import Snapshot
if not SEARCH_BACKEND_CONFIG.USE_SEARCHING_BACKEND:
return Snapshot.objects.none()