mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Update utils.py
This commit is contained in:
parent
7abbe08ff1
commit
7fdbd6a680
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue