From 65f01905611216ae25673492456a670180aa9651 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sat, 25 Feb 2023 08:07:24 +0000 Subject: [PATCH] Format Python code with psf/black push --- models/index_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/index_model.py b/models/index_model.py index 63afc62..8b034bb 100644 --- a/models/index_model.py +++ b/models/index_model.py @@ -243,8 +243,8 @@ class Index_handler: with open(file_path, "r", encoding="utf8") as f: file_contents = f.read() index_dict = json.loads(file_contents) - doc_id = index_dict['index_struct_id'] - doc_type = index_dict['docstore']['docs'][doc_id]['__type__'] + doc_id = index_dict["index_struct_id"] + doc_type = index_dict["docstore"]["docs"][doc_id]["__type__"] f.close() if doc_type == "tree": index = GPTTreeIndex.load_from_disk(file_path)