fix uploader bot
This commit is contained in:
parent
04046c69d6
commit
d8aeacbdcd
|
|
@ -13,7 +13,11 @@ main_router = Router()
|
|||
async def send_home_menu(chat_wrap, user, wallet_connection, **kwargs):
|
||||
return await tg_process_template(
|
||||
chat_wrap, user.translated('home_menu').format(
|
||||
wallet_address=Address(wallet_connection.wallet_address).to_string(1, 1, 1),
|
||||
wallet_address=(
|
||||
Address(wallet_connection.wallet_address).to_string(1, 1, 1)
|
||||
if wallet_connection.wallet_address
|
||||
else user.translated('noWalletConnected')
|
||||
),
|
||||
name=user.front_format(plain_text=True),
|
||||
), keyboard=get_inline_keyboard([
|
||||
[{
|
||||
|
|
@ -68,8 +72,8 @@ async def t_home_menu(__msg, **extra):
|
|||
WalletConnection.invalidated == False
|
||||
).first()
|
||||
|
||||
if not wallet_connection:
|
||||
return await send_connect_wallets_list(db_session, chat_wrap, user, message_id=message_id)
|
||||
# if not wallet_connection:
|
||||
# return await send_connect_wallets_list(db_session, chat_wrap, user, message_id=message_id)
|
||||
|
||||
return await send_home_menu(chat_wrap, user, wallet_connection, message_id=message_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue