From ea3dc2cfa302667411662b9f8b68db59da274762 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Mon, 3 Jul 2023 00:15:29 -0700 Subject: [PATCH] Simplify rendering of content type pages and logic of selecting config --- src/khoj/interface/web/content_type_github_input.html | 2 -- src/khoj/interface/web/content_type_input.html | 2 -- src/khoj/routers/web_client.py | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/khoj/interface/web/content_type_github_input.html b/src/khoj/interface/web/content_type_github_input.html index 27263532..edbad3e4 100644 --- a/src/khoj/interface/web/content_type_github_input.html +++ b/src/khoj/interface/web/content_type_github_input.html @@ -35,8 +35,6 @@ {% endfor %} -

You probably don't need to edit these.

-
diff --git a/src/khoj/interface/web/content_type_input.html b/src/khoj/interface/web/content_type_input.html index 17566149..9403cbdb 100644 --- a/src/khoj/interface/web/content_type_input.html +++ b/src/khoj/interface/web/content_type_input.html @@ -44,8 +44,6 @@
-

You probably don't need to edit these.

-
diff --git a/src/khoj/routers/web_client.py b/src/khoj/routers/web_client.py index 8fb8324a..de206dad 100644 --- a/src/khoj/routers/web_client.py +++ b/src/khoj/routers/web_client.py @@ -38,7 +38,7 @@ if not state.demo: search_type=None, processor=None, ) - current_config = state.config if state.config else json.loads(default_full_config.json()) + current_config = state.config or json.loads(default_full_config.json()) return templates.TemplateResponse("config.html", context={"request": request, "current_config": current_config}) @web_client.get("/config/content_type/github", response_class=HTMLResponse)