mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Fix indexing error for notion, expecting image and docx in dict
This commit is contained in:
parent
694bedc25b
commit
4d30e5b158
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue