Fix linting
This commit is contained in:
@@ -271,12 +271,17 @@ class LightRAG:
|
||||
set_logger(self.log_file_path, self.log_level)
|
||||
logger.info(f"Logger initialized for working directory: {self.working_dir}")
|
||||
|
||||
from lightrag.kg.shared_storage import initialize_share_data, try_initialize_namespace, get_namespace_data
|
||||
from lightrag.kg.shared_storage import (
|
||||
initialize_share_data,
|
||||
try_initialize_namespace,
|
||||
get_namespace_data,
|
||||
)
|
||||
|
||||
initialize_share_data()
|
||||
|
||||
need_init = try_initialize_namespace("scan_progress")
|
||||
need_init = try_initialize_namespace("scan_progress")
|
||||
scan_progress = get_namespace_data("scan_progress")
|
||||
logger.info(f"scan_progress type after init: {type(scan_progress)}")
|
||||
logger.info(f"scan_progress type after init: {type(scan_progress)}")
|
||||
scan_progress.update(
|
||||
{
|
||||
"is_scanning": False,
|
||||
@@ -286,9 +291,6 @@ class LightRAG:
|
||||
"progress": 0,
|
||||
}
|
||||
)
|
||||
scan_progress = get_namespace_data("scan_progress")
|
||||
logger.info(f"scan_progress type after update: {type(scan_progress)}")
|
||||
logger.info(f"Scan_progres value after update: {scan_progress}")
|
||||
|
||||
if not os.path.exists(self.working_dir):
|
||||
logger.info(f"Creating working directory {self.working_dir}")
|
||||
|
Reference in New Issue
Block a user