From 3709cb236f16ed9ce8672893167ed5ccfbb062ca Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Sat, 30 Jul 2022 11:08:15 +0100 Subject: [PATCH] Use correct index path; retrieve historical batches --- mwmbl/background.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mwmbl/background.py b/mwmbl/background.py index 21f0192..924cb45 100644 --- a/mwmbl/background.py +++ b/mwmbl/background.py @@ -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: