Removed utils.py, added decrypt_multiple function in other_accounts.py
This commit is contained in:
@ -3,10 +3,9 @@ import functools
|
||||
import telebot
|
||||
from sqlalchemy.future import Engine
|
||||
|
||||
from .. import utils
|
||||
from . import handlers
|
||||
|
||||
__all__ = ["handlers", "utils"]
|
||||
__all__ = ["handlers"]
|
||||
|
||||
|
||||
def create_bot(token: str, engine: Engine) -> telebot.TeleBot:
|
||||
|
@ -14,7 +14,6 @@ from ..account_checks import (
|
||||
)
|
||||
from ..account_parsing import accounts_to_json, json_to_accounts
|
||||
from ..gen_password import gen_password
|
||||
from ..utils import get_all_accounts
|
||||
|
||||
Message = telebot.types.Message
|
||||
|
||||
@ -399,7 +398,8 @@ def _export2(
|
||||
if not cryptography.master_pass.check_master_pass(text, hash_pass, master_salt):
|
||||
return _send_tmp_message(bot, mes.chat.id, "Не подходит мастер пароль")
|
||||
|
||||
accounts = get_all_accounts(engine, mes.from_user.id, text)
|
||||
accounts = database.get.get_all_accounts(engine, mes.from_user.id)
|
||||
accounts = cryptography.other_accounts.decrypt_multiple(accounts, text)
|
||||
json_io = accounts_to_json(accounts)
|
||||
bot_mes = bot.send_document(mes.chat.id, json_io)
|
||||
|
||||
|
Reference in New Issue
Block a user