Add Macro

This commit is contained in:
LucasVbr
2022-06-05 12:36:08 +02:00
parent 9c959af699
commit 0e274217e0
5 changed files with 43 additions and 17 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ def getDataSubfiles(files: list):
def convertToolBadges(listToolName: list) -> list[dict[str, str]]:
tools = [Badge(toolName) for toolName in listToolName]
tools.sort(key=getBadgeColor) # Sort by color
return [{"url": badge.url, "name": badge.name} for badge in tools]
return [{"src": badge.url, "alt": badge.name} for badge in tools]
def getWeather(city: str) -> dict: