From 1fb5ad469bb4e5be97d1b7fb1250afb221826b37 Mon Sep 17 00:00:00 2001 From: grillazz Date: Sat, 7 Jun 2025 09:48:34 +0200 Subject: [PATCH] code review --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 397caf5..3dbfdac 100644 --- a/app/main.py +++ b/app/main.py @@ -1,4 +1,5 @@ from contextlib import asynccontextmanager +from pathlib import Path import asyncpg @@ -26,7 +27,7 @@ from app.utils.logging import AppLogger logger = AppLogger().get_logger() -templates = Jinja2Templates(directory="templates") +templates = Jinja2Templates(directory=Path(__file__).parent.parent / "templates") @asynccontextmanager