Skip to content

Commit c0a28d6

Browse files
author
Sepehr Bazyar
committed
fix: debug import address modules or function naming
1 parent 748ca65 commit c0a28d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from sqlmodel import Session, create_engine
22
from sqlmodel.pool import StaticPool
33

4-
from config import settings
4+
from src.config import settings
55

66
engine = create_engine(
77
settings.DATABASE_URL,
88
poolclass=StaticPool,
99
)
1010

1111

12-
def get_db():
12+
def get_session():
1313
with Session(engine) as session:
1414
yield session

0 commit comments

Comments
 (0)