Skip to content

Commit

Permalink
Propagate flags to configure index command
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Sep 11, 2023
1 parent 3438547 commit 9f42a1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/khoj/routers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/khoj/routers/indexer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Standard Packages
import logging
import sys
import json
from typing import Optional, Union, Dict

# External Packages
Expand Down

0 comments on commit 9f42a1a

Please sign in to comment.