Small reformating in bot.message_handler
This commit is contained in:
parent
5d59adb7d2
commit
70e9afe21d
@ -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)
|
||||
|
Reference in New Issue
Block a user