Small reformating in bot.message_handler

This commit is contained in:
StNicolay 2023-01-03 11:48:25 +03:00
parent 5d59adb7d2
commit 70e9afe21d

View File

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