mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Merge branch 'master' of github.com:debanjum/khoj
This commit is contained in:
@@ -41,7 +41,9 @@ def github_config_page(request: Request):
|
|||||||
)
|
)
|
||||||
|
|
||||||
current_config = (
|
current_config = (
|
||||||
state.config.content_type.github if state.config and state.config.content_type.github else default_config
|
state.config.content_type.github
|
||||||
|
if state.config and state.config.content_type and state.config.content_type.github
|
||||||
|
else default_config
|
||||||
)
|
)
|
||||||
|
|
||||||
current_config = json.loads(current_config.json())
|
current_config = json.loads(current_config.json())
|
||||||
@@ -65,7 +67,7 @@ def content_config_page(request: Request, content_type: str):
|
|||||||
)
|
)
|
||||||
current_config = (
|
current_config = (
|
||||||
state.config.content_type[content_type]
|
state.config.content_type[content_type]
|
||||||
if state.config and content_type in state.config.content_type
|
if state.config and state.config.content_type and content_type in state.config.content_type
|
||||||
else default_config
|
else default_config
|
||||||
)
|
)
|
||||||
current_config = json.loads(current_config.json())
|
current_config = json.loads(current_config.json())
|
||||||
@@ -93,7 +95,7 @@ def conversation_processor_config_page(request: Request):
|
|||||||
|
|
||||||
current_processor_conversation_config = (
|
current_processor_conversation_config = (
|
||||||
state.config.processor.conversation
|
state.config.processor.conversation
|
||||||
if state.config and state.config.processor.conversation
|
if state.config and state.config.processor and state.config.processor.conversation
|
||||||
else default_processor_config
|
else default_processor_config
|
||||||
)
|
)
|
||||||
current_processor_conversation_config = json.loads(current_processor_conversation_config.json())
|
current_processor_conversation_config = json.loads(current_processor_conversation_config.json())
|
||||||
|
|||||||
Reference in New Issue
Block a user