Update api.py
Browse files
api.py
CHANGED
@@ -147,7 +147,7 @@ def format_ki_descriptions(descriptions: list[str]) -> str:
|
|
147 |
for ind in range(len(descriptions)):
|
148 |
ki_number = ind + 1
|
149 |
formatted_description = f"Here is the description of the key issue {ki_number}: <description{ki_number}>{descriptions[ind]}<description{ki_number}>"
|
150 |
-
if ind == len(
|
151 |
formatted_descriptions += formatted_description
|
152 |
else:
|
153 |
formatted_descriptions += formatted_description + "\n"
|
|
|
147 |
for ind in range(len(descriptions)):
|
148 |
ki_number = ind + 1
|
149 |
formatted_description = f"Here is the description of the key issue {ki_number}: <description{ki_number}>{descriptions[ind]}<description{ki_number}>"
|
150 |
+
if ind == len(descriptions) - 1:
|
151 |
formatted_descriptions += formatted_description
|
152 |
else:
|
153 |
formatted_descriptions += formatted_description + "\n"
|