mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-03 16:18:59 -04:00
split archivebox.use into archivebox.reads and archivebox.writes
This commit is contained in:
parent
aaf069fab0
commit
80d8a6b667
8 changed files with 138 additions and 131 deletions
|
@ -6,7 +6,7 @@ from typing import List, Union
|
|||
from django.db.models import QuerySet
|
||||
from django.conf import settings
|
||||
|
||||
import abx.archivebox.use
|
||||
import abx.archivebox.reads
|
||||
|
||||
from archivebox.index.schema import Link
|
||||
from archivebox.misc.util import enforce_types
|
||||
|
@ -57,7 +57,7 @@ def get_indexable_content(results: QuerySet):
|
|||
|
||||
|
||||
def import_backend():
|
||||
for backend in abx.archivebox.use.get_SEARCHBACKENDS().values():
|
||||
for backend in abx.archivebox.reads.get_SEARCHBACKENDS().values():
|
||||
if backend.name == SEARCH_BACKEND_CONFIG.SEARCH_BACKEND_ENGINE:
|
||||
return backend
|
||||
raise Exception(f'Could not load {SEARCH_BACKEND_CONFIG.SEARCH_BACKEND_ENGINE} as search backend')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue