fix
This commit is contained in:
parent
e63e040692
commit
6405baf251
|
|
@ -67,7 +67,7 @@ async def t_callback_purchase_node_content(query: types.CallbackQuery, memory=No
|
|||
)
|
||||
db_session.add(new_action)
|
||||
db_session.commit()
|
||||
await user.send_content(db_session, content, message_id=query.message.message_id)
|
||||
await chat_wrap.send_content(db_session, content, message_id=query.message.message_id)
|
||||
|
||||
|
||||
router.callback_query.register(t_callback_purchase_node_content, F.data.startswith('PC_'))
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ async def license_index_loop(memory, platform_found: bool, seqno: int) -> [bool,
|
|||
chat_wrap = Wrapped_CBotChat(CLIENT_TELEGRAM_API_KEY, chat_id=user.telegram_id, db_session=session, user=user)
|
||||
content = session.query(StoredContent).filter_by(id=action.content_id).first()
|
||||
|
||||
if (datetime.now() - action.updated) > timedelta(minutes=5):
|
||||
if (datetime.now() - action.created) > timedelta(minutes=5):
|
||||
if action.telegram_message_id:
|
||||
await chat_wrap.delete_message(action.telegram_message_id)
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ class WalletMixin:
|
|||
have_next_page = True
|
||||
|
||||
for nft_item in nfts_list:
|
||||
try:
|
||||
make_log(self, f"Scanning onchain NFT: {nft_item}", level='info')
|
||||
item_address = Address(nft_item['address']).to_string(1, 1, 1)
|
||||
owner_address = Address(nft_item['owner_address']).to_string(1, 1, 1)
|
||||
|
||||
|
|
@ -62,6 +64,9 @@ class WalletMixin:
|
|||
db_session.commit()
|
||||
|
||||
make_log(self, f"New onchain NFT found: {item_address}", level='info')
|
||||
except BaseException as e:
|
||||
make_log(self, f"Error while scanning onchain NFT: {e}", level='error')
|
||||
continue
|
||||
|
||||
async def get_user_content(self, db_session, limit=100, offset=0):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue