Skip to content

Commit

Permalink
Merge pull request #828 from AI4Bharat/minor_fix_cl_ui
Browse files Browse the repository at this point in the history
small_fix
  • Loading branch information
ishvindersethi22 authored Sep 5, 2023
2 parents 52b5dc2 + b44364e commit 3e69093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/utils/convert_result_to_chitralekha_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 3e69093

Please sign in to comment.