diff --git a/src/bot/message_handlers.py b/src/bot/message_handlers.py index e43f6ee..fda784f 100644 --- a/src/bot/message_handlers.py +++ b/src/bot/message_handlers.py @@ -307,10 +307,7 @@ async def _add_account5( password=data["passwd"], ) - encrypted_account = encryption.accounts.encrypt( - account, - text, - ) + encrypted_account = encryption.accounts.encrypt(account, text) result = database.add.add_account( engine, @@ -393,10 +390,7 @@ async def _get_account3( ) account = database.get.get_account_info(engine, mes.from_user.id, name) - account = encryption.accounts.decrypt( - account, - text, - ) + account = encryption.accounts.decrypt(account, text) await send_deleteable_message( bot, mes.chat.id, @@ -651,10 +645,7 @@ async def _import3( if not check_account(account): failed.append(account.name) continue - account = encryption.accounts.encrypt( - account, - text, - ) + account = encryption.accounts.encrypt(account, text) result = database.add.add_account(engine, account) if not result: failed.append(account.name)