Skip to content

Commit

Permalink
Fix comparison for search type in plugins mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Sep 25, 2023
1 parent efe5e09 commit 5e16074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/khoj/routers/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def has_valid_text_config(config: TextContentConfig):

try:
# Initialize External Plugin Search
if (t == None or t in state.SearchType) and content_config.plugins and search_models.text_search:
if t == None and content_config.plugins and search_models.text_search:
logger.info("🔌 Setting up search for plugins")
content_index.plugins = {}
for plugin_type, plugin_config in content_config.plugins.items():
Expand Down

0 comments on commit 5e16074

Please sign in to comment.