An open source, non-profit web search engine
Use correct index path; retrieve historical batches
Daoud Clarke3709cb236f16
diff --git a/mwmbl/background.py b/mwmbl/background.pyindex 21f0192..924cb45 100644--- a/mwmbl/background.py+++ b/mwmbl/background.py@@ -7,14 +7,14 @@ from time import sleepfrom mwmbl.indexer import index_batches, historicalfrom mwmbl.indexer.batch_cache import BatchCache-from mwmbl.indexer.paths import INDEX_PATH, BATCH_DIR_NAME+from mwmbl.indexer.paths import BATCH_DIR_NAME, INDEX_NAMElogger = getLogger(__name__)def run(data_path: str):- # historical.run()- index_path = Path(data_path) / INDEX_PATH+ historical.run()+ index_path = Path(data_path) / INDEX_NAMEbatch_cache = BatchCache(Path(data_path) / BATCH_DIR_NAME)while True:try: