From e00fb0ff2c7ba826e2545d1038ac71575f5c5741 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 12 Jan 2023 01:00:29 +0300 Subject: sound_bot fix --- src/sound_bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sound_bot.py b/src/sound_bot.py index 59d065a..186337a 100755 --- a/src/sound_bot.py +++ b/src/sound_bot.py @@ -304,7 +304,7 @@ class RecordRenderer(Renderer): @classmethod def record_done(cls, info: dict, node: str, uid: int) -> str: - ulang = bot.store.get_user_lang(uid) + ulang = bot.db.get_user_lang(uid) def lang(key, *args): return bot.lang.get(key, ulang, *args) @@ -324,7 +324,7 @@ class RecordRenderer(Renderer): @classmethod def record_error(cls, info: dict, node: str, uid: int) -> str: - ulang = bot.store.get_user_lang(uid) + ulang = bot.db.get_user_lang(uid) def lang(key, *args): return bot.lang.get(key, ulang, *args) @@ -471,7 +471,7 @@ class CamerasRenderer(Renderer): # # @classmethod # def record_done(cls, info: dict, node: str, uid: int) -> str: - # ulang = bot.store.get_user_lang(uid) + # ulang = bot.db.get_user_lang(uid) # # def lang(key, *args): # return bot.lang.get(key, ulang, *args) @@ -491,7 +491,7 @@ class CamerasRenderer(Renderer): # # @classmethod # def record_error(cls, info: dict, node: str, uid: int) -> str: - # ulang = bot.store.get_user_lang(uid) + # ulang = bot.db.get_user_lang(uid) # # def lang(key, *args): # return bot.lang.get(key, ulang, *args) -- cgit v1.2.3