Добавлена возможность пробрасывать есиа через прокси
All checks were successful
Build And Push / publish (push) Successful in 7m20s

This commit is contained in:
2025-09-30 16:44:47 +03:00
parent c7f439e48f
commit c3fcd2021d
3 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,9 @@ from . import schema as s
class ESIA_API(AsyncClient):
def __init__(self):
self.logger = getLogger(__name__)
super().__init__(base_url=settings.ESIA_BASE_URL)
super().__init__(
base_url=settings.ESIA_BASE_URL, proxy=settings.ESIA_PROXY
)
async def sign_request(self, data: dict[str, Any]):
timestamp = datetime.now(UTC).strftime('%Y.%m.%d %H:%M:%S %z').strip()