diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-21 01:16:49 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-21 01:16:49 +0300 |
commit | 2fc72f67cd7b566e7d9875712784642043339c79 (patch) | |
tree | 56b0902b099774a5dca4263b75d525488595536f /src/inverter_bot.py | |
parent | 34ad131e4bb60f4a0a993847e7d2d90413563bac (diff) |
inverter_bot: setosp: fix notification
Diffstat (limited to 'src/inverter_bot.py')
-rwxr-xr-x | src/inverter_bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
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,) ) |