mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Fix indexing error for notion, expecting image and docx in dict
This commit is contained in:
@@ -36,6 +36,8 @@ def collect_files(search_type: Optional[SearchType] = SearchType.All, user=None)
|
||||
if search_type == SearchType.All or search_type == SearchType.Pdf:
|
||||
pdf_config = LocalPdfConfig.objects.filter(user=user).first()
|
||||
files["pdf"] = get_pdf_files(construct_config_from_db(pdf_config)) if pdf_config else {}
|
||||
files["image"] = {}
|
||||
files["docx"] = {}
|
||||
return files
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user