From 2fc72f67cd7b566e7d9875712784642043339c79 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 21 Oct 2022 01:16:49 +0300 Subject: inverter_bot: setosp: fix notification --- src/inverter_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inverter_bot.py b/src/inverter_bot.py index 3e281d3..285fdeb 100755 --- a/src/inverter_bot.py +++ b/src/inverter_bot.py @@ -387,7 +387,7 @@ def setosp_input(ctx: Context): bot.notify_all( lambda lang: bot.lang.get('osp_changed_notification', lang, ctx.user.id, ctx.user.name, - bot.lang.get(str(selected_sp.value), lang)), + bot.lang.get(f'setosp_{selected_sp.value.lower()}', lang)), exclude=(ctx.user_id,) ) -- cgit v1.2.3