From b44364e296fbbe915ab67b9a1a9439587f6032af Mon Sep 17 00:00:00 2001 From: Kunal Tiwary Date: Tue, 5 Sep 2023 11:46:32 +0530 Subject: [PATCH] small_fix --- backend/utils/convert_result_to_chitralekha_format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/utils/convert_result_to_chitralekha_format.py b/backend/utils/convert_result_to_chitralekha_format.py index b60f86f23..39babcd5c 100644 --- a/backend/utils/convert_result_to_chitralekha_format.py +++ b/backend/utils/convert_result_to_chitralekha_format.py @@ -6,7 +6,7 @@ def create_memory(result): dict_type = result[i]["from_name"] except KeyError: print( - f"The entry number {i} is not having an id or type hence cannot be converted to chitralekha format" + f"The entry number {i} is not having an id or from_name hence cannot be converted to chitralekha format" ) del result[i] continue @@ -27,7 +27,7 @@ def create_memory(result): return memory -def convert_result_to_chitralekha_format(result, ann_id): +def convert_result_to_chitralekha_format(result, ann_id, project_type): if (len(result) == 1 and result[0] == {}) or len(result) == 0: return [] memory = create_memory(result)