Skip to content

Commit 1fb5ad4

Browse files
committed
code review
1 parent f27e53f commit 1fb5ad4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from contextlib import asynccontextmanager
2+
from pathlib import Path
23

34
import asyncpg
45

@@ -26,7 +27,7 @@
2627

2728
logger = AppLogger().get_logger()
2829

29-
templates = Jinja2Templates(directory="templates")
30+
templates = Jinja2Templates(directory=Path(__file__).parent.parent / "templates")
3031

3132

3233
@asynccontextmanager

0 commit comments

Comments
 (0)