Fixed missing imports bug and fixed linting
This commit is contained in:
@@ -684,7 +684,9 @@ def create_app(args):
|
||||
trace_exception(e)
|
||||
logging.error(f"Error indexing file {file_path}: {str(e)}")
|
||||
|
||||
ASCIIColors.info(f"Indexed {len(new_files)} documents from {args.input_dir}")
|
||||
ASCIIColors.info(
|
||||
f"Indexed {len(new_files)} documents from {args.input_dir}"
|
||||
)
|
||||
except Exception as e:
|
||||
logging.error(f"Error during startup indexing: {str(e)}")
|
||||
yield
|
||||
@@ -917,7 +919,6 @@ def create_app(args):
|
||||
else:
|
||||
logging.warning(f"No content extracted from file: {file_path}")
|
||||
|
||||
|
||||
@app.post("/documents/scan", dependencies=[Depends(optional_api_key)])
|
||||
async def scan_for_new_documents():
|
||||
"""
|
||||
|
@@ -622,7 +622,7 @@
|
||||
const data = await response.json();
|
||||
// Convert indexed_files to array if it's not already
|
||||
const files = Array.isArray(data.indexed_files) ? data.indexed_files : data.indexed_files.split(',');
|
||||
|
||||
|
||||
healthInfo.innerHTML = `
|
||||
<div class="space-y-4">
|
||||
<div class="flex items-center">
|
||||
|
Reference in New Issue
Block a user