mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 19:03:01 +01:00
Correctly handle API response when no files to index
This commit is contained in:
parent
ba37b28fb5
commit
1ae6669fbf
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ async def update(
|
||||||
|
|
||||||
logger.info(f"📪 Content index updated via API call by {client} client")
|
logger.info(f"📪 Content index updated via API call by {client} client")
|
||||||
|
|
||||||
indexed_filenames = ",".join(file for ctype in index_files for file in index_files[ctype])
|
indexed_filenames = ",".join(file for ctype in index_files for file in index_files[ctype]) or ""
|
||||||
return Response(content=indexed_filenames, status_code=200)
|
return Response(content=indexed_filenames, status_code=200)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue