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"],
)
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)