Fix linting
This commit is contained in:
@@ -454,7 +454,7 @@ def create_app(args):
|
|||||||
"core_version": core_version,
|
"core_version": core_version,
|
||||||
"api_version": __api_version__,
|
"api_version": __api_version__,
|
||||||
"auth_mode": auth_mode,
|
"auth_mode": auth_mode,
|
||||||
"pipeline_busy": pipeline_status.get("busy", False)
|
"pipeline_busy": pipeline_status.get("busy", False),
|
||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error getting health status: {str(e)}")
|
logger.error(f"Error getting health status: {str(e)}")
|
||||||
|
@@ -892,7 +892,9 @@ class LightRAG:
|
|||||||
# Get first document's file path and total count for job name
|
# Get first document's file path and total count for job name
|
||||||
first_doc_id, first_doc = next(iter(to_process_docs.items()))
|
first_doc_id, first_doc = next(iter(to_process_docs.items()))
|
||||||
first_doc_path = first_doc.file_path
|
first_doc_path = first_doc.file_path
|
||||||
path_prefix = first_doc_path[:20] + ("..." if len(first_doc_path) > 20 else "")
|
path_prefix = first_doc_path[:20] + (
|
||||||
|
"..." if len(first_doc_path) > 20 else ""
|
||||||
|
)
|
||||||
total_files = len(to_process_docs)
|
total_files = len(to_process_docs)
|
||||||
job_name = f"{path_prefix}[{total_files} files]"
|
job_name = f"{path_prefix}[{total_files} files]"
|
||||||
pipeline_status["job_name"] = job_name
|
pipeline_status["job_name"] = job_name
|
||||||
|
Reference in New Issue
Block a user