Fix NPMplus button f-string
This commit is contained in:
@@ -278,8 +278,8 @@ async def npmplus_hosts(msg: Message):
|
|||||||
action = "disable" if enabled else "enable"
|
action = "disable" if enabled else "enable"
|
||||||
rows.append([
|
rows.append([
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton(
|
||||||
text=f\"{('⛔' if enabled else '✅')} {name[:12]}\",
|
text=f"{('⛔' if enabled else '✅')} {name[:12]}",
|
||||||
callback_data=f\"npmplus:{action}:{hid}\"
|
callback_data=f"npmplus:{action}:{hid}"
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user