From 0c1a65570be7f34f12a35da45669676f4479abd4 Mon Sep 17 00:00:00 2001 From: Stas Medvedev Date: Wed, 12 Jun 2024 16:56:07 +0300 Subject: add utils.restricted_exec add app.tasks --- utils/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/__init__.py') diff --git a/utils/__init__.py b/utils/__init__.py index 22d7058..3f41882 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -4,6 +4,15 @@ from typing import Annotated from fastapi import Request, Header, Depends import httpx +from . import restricted_exec + +__all__ = [ + 'restricted_exec', + 'get_avatar_urls', + 'get_client_host', + 'get_client_geo' +] + def get_avatar_urls() -> list[str]: path = Path("./static") / "avatars" -- cgit v1.2.3