From 7fdbd6a68003aa87ce0e4cd7f30036d211400455 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 19 Jul 2023 15:12:50 +0300 Subject: [PATCH] Update utils.py --- pr_agent/algo/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index ece59448..866b160e 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -30,8 +30,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': @@ -39,8 +38,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