deploy-trig

This commit is contained in:
2024-01-15 11:19:37 +03:00
parent e312a3747c
commit 736569930b
2 changed files with 3 additions and 3 deletions

View File

@@ -5,9 +5,10 @@ import aiohttp
from settings import API_BASE
headers = {"Content-Type": "application/json"}
api_base = API_BASE or "https://core.discours.io"
# TODO: rewrite to orm usage?
async def _request_endpoint(query_name, body) -> Any:
async with aiohttp.ClientSession() as session:
async with session.post(API_BASE, headers=headers, json=body) as response: