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

Use fstrings #346

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion atom_feeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
entry.appendChild(id)

title = atomFeed.createElement("title")
title.appendChild(atomFeed.createTextNode("Released Version " + str(mod["versions"][0]["id"]) + " for '" + mod["name"] + "'"))
title.appendChild(atomFeed.createTextNode(f'Released Version {str(mod["versions"][0]["id"])} for "{ mod["name"] }"'))
entry.appendChild(title)

content = atomFeed.createElement("content")
Expand Down
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
Loading