1
0
Fork 0
mirror of synced 2024-06-23 08:30:29 +12:00

Merge pull request #625 from ArchiveBox/jdcaballerov-patch-1-1

Update sonic.py
This commit is contained in:
Nick Sweeting 2021-01-21 01:36:32 +02:00 committed by GitHub
commit b1a4429670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ from sonic import IngestClient, SearchClient
from archivebox.util import enforce_types
from archivebox.config import SEARCH_BACKEND_HOST_NAME, SEARCH_BACKEND_PORT, SEARCH_BACKEND_PASSWORD, SONIC_BUCKET, SONIC_COLLECTION
MAX_SONIC_TEXT_LENGTH = 20000
MAX_SONIC_TEXT_LENGTH = 2000
@enforce_types
def index(snapshot_id: str, texts: List[str]):