Merge commit 'd1586ddd77b86f0d3b29aee3370f29624799e388' into hl/incremental_review

This commit is contained in:
Hussam.lawen
2023-07-19 16:14:33 +03:00
2 changed files with 17 additions and 20 deletions

View File

@ -34,8 +34,7 @@ def convert_to_markdown(output_data: dict) -> str:
elif isinstance(value, list):
if key.lower() == 'code suggestions':
markdown_text += "\n" # just looks nicer with additional line breaks
# emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
emoji = ""
emoji = emojis.get(key, "")
markdown_text += f"- {emoji} **{key}:**\n\n"
for item in value:
if isinstance(item, dict) and key.lower() == 'code suggestions':
@ -43,8 +42,7 @@ def convert_to_markdown(output_data: dict) -> str:
elif item:
markdown_text += f" - {item}\n"
elif value != 'n/a':
# emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key
emoji = ""
emoji = emojis.get(key, "")
markdown_text += f"- {emoji} **{key}:** {value}\n"
return markdown_text