Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Use fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHinrichs authored Jan 26, 2024
1 parent bc2e67f commit af3e43f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen_notif.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def mod_to_embed(mod: dict[str, Any]) -> dict[str, Any]:
"""
embed: dict[str, Any] = deepcopy(BASE_EMBED)

embed['title'] = "[" + mod['name'] + "/" + str(mod["versions"][0]["id"]) + "]"
embed['title'] = f'[{mod["name"]}/{str(mod["versions"][0]["id"])}]'
embed['description'] = mod['description']
embed['footer']['text'] = f"{mod['guid']}"
if 'color' in mod:
Expand Down

0 comments on commit af3e43f

Please sign in to comment.