Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Fix argument order

Daoud Clarke80100ebb1963
diff --git a/mwmbl/indexer/index_batches.py b/mwmbl/indexer/index_batches.py
index 55397b9..ceb6c4f 100644
--- a/mwmbl/indexer/index_batches.py
+++ b/mwmbl/indexer/index_batches.py
@@ -36,7 +36,7 @@ def run(batch_cache: BatchCache, index_path: str):
index_batches(batches, index_path, url_db)
logger.info("Indexed pages")
- process_batch.run(batch_cache, BatchStatus.URLS_UPDATED, BatchStatus.INDEXED, process, 10000)
+ process_batch.run(batch_cache, BatchStatus.URLS_UPDATED, BatchStatus.INDEXED, 10000, process)
def index_batches(batch_data: Collection[HashedBatch], index_path: str, url_db: URLDatabase):
diff --git a/mwmbl/indexer/update_urls.py b/mwmbl/indexer/update_urls.py
index b887993..f8cd6b7 100644
--- a/mwmbl/indexer/update_urls.py
+++ b/mwmbl/indexer/update_urls.py
@@ -35,7 +35,7 @@ def update_urls_continuously(data_path: str, new_item_queue: Queue):
def run(batch_cache: BatchCache, new_item_queue: Queue):
- process_batch.run(batch_cache, BatchStatus.LOCAL, BatchStatus.URLS_UPDATED, record_urls_in_database, new_item_queue, 100)
+ process_batch.run(batch_cache, BatchStatus.LOCAL, BatchStatus.URLS_UPDATED, record_urls_in_database, 100, new_item_queue)
def record_urls_in_database(batches: Collection[HashedBatch], new_item_queue: Queue):