Fix indexing error for notion, expecting image and docx in dict

This commit is contained in:
sabaimran 2024-07-24 16:58:31 +05:30
parent 694bedc25b
commit 4d30e5b158

View file

@ -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