Use correct index path; retrieve historical batches
This commit is contained in:
parent
063ebb4504
commit
3709cb236f
1 changed files with 3 additions and 3 deletions
|
@ -7,14 +7,14 @@ from time import sleep
|
|||
|
||||
from mwmbl.indexer import index_batches, historical
|
||||
from 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_NAME
|
||||
|
||||
logger = getLogger(__name__)
|
||||
|
||||
|
||||
def run(data_path: str):
|
||||
# historical.run()
|
||||
index_path = Path(data_path) / INDEX_PATH
|
||||
historical.run()
|
||||
index_path = Path(data_path) / INDEX_NAME
|
||||
batch_cache = BatchCache(Path(data_path) / BATCH_DIR_NAME)
|
||||
while True:
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue