This commit is contained in:
user 2024-04-05 21:17:46 +03:00
parent f7fc873baf
commit 31860a1307
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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}')