actually fix python 3.10 compat

This commit is contained in:
Izalia Mae 2025-02-12 15:14:46 -05:00
parent 87e45553ca
commit ac0cddd65a
3 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ dependencies = [
"aiohttp >= 3.9.5",
"argon2-cffi == 23.1.0",
"barkshark-lib >= 0.2.3, < 0.3.0",
"barkshark-sql >= 0.2.0, < 0.3.0",
"barkshark-sql >= 0.2.5, < 0.3.0",
"click == 8.1.2",
"docstring-parser == 0.16",
"hamlish == 0.4.0",

View file

@ -48,7 +48,7 @@ def get_csp(request: web.Request) -> str:
"img-src 'self'",
"object-src 'none'",
"frame-ancestors 'none'",
f"manifest-src 'self' https://{request.app["config"].domain}"
f"manifest-src 'self' https://{request.app['config'].domain}"
]
return "; ".join(data) + ";"

View file

@ -20,7 +20,7 @@ if TYPE_CHECKING:
T = TypeVar("T", bound = JsonBase[Any])
HEADERS = {
"Accept": f"{MIMETYPES["activity"]}, {MIMETYPES["json"]};q=0.9",
"Accept": f"{MIMETYPES['activity']}, {MIMETYPES['json']};q=0.9",
"User-Agent": f"ActivityRelay/{__version__}"
}