fix
This commit is contained in:
parent
f7fc873baf
commit
31860a1307
|
|
@ -63,7 +63,7 @@ async def t_callback_purchase_node_content(query: types.CallbackQuery, memory=No
|
||||||
meta={
|
meta={
|
||||||
'confirmation_url': wallet_obj_by_name(ton_connection.wallet_key.split('==')[0])['universal_url']
|
'confirmation_url': wallet_obj_by_name(ton_connection.wallet_key.split('==')[0])['universal_url']
|
||||||
},
|
},
|
||||||
created_at=datetime.now()
|
created=datetime.now()
|
||||||
)
|
)
|
||||||
db_session.add(new_action)
|
db_session.add(new_action)
|
||||||
db_session.commit()
|
db_session.commit()
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class TonCenter:
|
||||||
await asyncio.sleep(0.1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
self.last_used = time.time()
|
self.last_used = time.time()
|
||||||
response = await client.request(method, f"{self.host_v3 if v3 is True else self.host}{endpoint}", *args, **kwargs)
|
response = await client.request(method, f"{self.v3_host if v3 is True else self.host}{endpoint}", *args, **kwargs)
|
||||||
try:
|
try:
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
raise Exception(f'Error while toncenter request {endpoint}: {response.text}')
|
raise Exception(f'Error while toncenter request {endpoint}: {response.text}')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue