From 5d5df76aa7df56bdbec07c18e063a1125cfd0465 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Fri, 3 Mar 2023 01:45:50 -0500 Subject: [PATCH] Fix composition loading --- 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 b631172..10ab05e 100644 --- a/models/index_model.py +++ b/models/index_model.py @@ -792,7 +792,7 @@ class Index_handler: ) # Save the composed index - tree_index.save_to_disk(app_root_path()/"indexes"/user_id/name) + tree_index.save_to_disk(app_root_path()/"indexes"/str(user_id)/name) self.index_storage[user_id].queryable_index = tree_index @@ -822,7 +822,7 @@ class Index_handler: name = f"composed_index_{date.today().month}_{date.today().day}.json" # Save the composed index - simple_index.save_to_disk(app_root_path()/"indexes"/user_id/name) + simple_index.save_to_disk(app_root_path()/"indexes"/str(user_id)/name) self.index_storage[user_id].queryable_index = simple_index try: