Skip to content

Commit

Permalink
small_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Sep 5, 2023
1 parent 52b5dc2 commit b44364e
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 b44364e

Please sign in to comment.