From 9f42a1a03634d0daefe7ba74d75840066e8c13ee Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 11 Sep 2023 10:33:44 -0700 Subject: [PATCH] Propagate flags to configure index command --- src/khoj/routers/api.py | 2 +- src/khoj/routers/indexer.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/khoj/routers/api.py b/src/khoj/routers/api.py index d3bccb27..2ff6bab0 100644 --- a/src/khoj/routers/api.py +++ b/src/khoj/routers/api.py @@ -608,7 +608,7 @@ def update( logger.warning(error_msg) raise HTTPException(status_code=500, detail=error_msg) try: - configure_server(state.config) + configure_server(state.config, regenerate=force, search_type=t) except Exception as e: error_msg = f"🚨 Failed to update server via API: {e}" logger.error(error_msg, exc_info=True) diff --git a/src/khoj/routers/indexer.py b/src/khoj/routers/indexer.py index 1d89ee11..a4e1c465 100644 --- a/src/khoj/routers/indexer.py +++ b/src/khoj/routers/indexer.py @@ -1,7 +1,6 @@ # Standard Packages import logging import sys -import json from typing import Optional, Union, Dict # External Packages