Skip to content

Commit

Permalink
Merge pull request #1721 from Rid/patch-1
Browse files Browse the repository at this point in the history
Fix formatting of f strings
  • Loading branch information
anasty17 authored May 22, 2024
2 parents 1e0bc1d + 448e36f commit 4790c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/modules/bot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def get_buttons(key=None, edit_type=None):
if key == "newser":
msg = "Send one server as dictionary {}, like in config.env without []. Timeout: 60 sec"
else:
msg = f"Send a valid value for {key} in server {config_dict["USENET_SERVERS"][index]['name']}. Current value is '{config_dict["USENET_SERVERS"][index][key]}. Timeout: 60 sec"
msg = f"Send a valid value for {key} in server {config_dict['USENET_SERVERS'][index]['name']}. Current value is '{config_dict['USENET_SERVERS'][index][key]}. Timeout: 60 sec"
elif key == "var":
for k in list(config_dict.keys())[START : 10 + START]:
buttons.ibutton(k, f"botset botvar {k}")
Expand Down Expand Up @@ -865,7 +865,7 @@ async def edit_bot_settings(client, query):
await event_handler(client, query, pfunc, rfunc)
elif data[1].startswith("nzbsevar") and STATE == "view":
index = int(data[1].replace("nzbsevar", ""))
value = f"{config_dict["USENET_SERVERS"][index][data[2]]}"
value = f"{config_dict['USENET_SERVERS'][index][data[2]]}"
if len(value) > 200:
await query.answer()
with BytesIO(str.encode(value)) as out_file:
Expand Down

0 comments on commit 4790c54

Please sign in to comment.