Spaces:
Runtime error
Runtime error
Update database/database.py
Browse files- database/database.py +1 -1
database/database.py
CHANGED
|
@@ -7,8 +7,8 @@ engine = create_engine(DATABASE_URL)
|
|
| 7 |
SessionLocal = session.Session(autocommit=False, autoflush=False, bind=engine)
|
| 8 |
|
| 9 |
async def init_db():
|
| 10 |
-
pirnt("Databse initialize....")
|
| 11 |
SQLModel.metadata.create_all(engine)
|
|
|
|
| 12 |
|
| 13 |
def get_session():
|
| 14 |
db = SessionLocal
|
|
|
|
| 7 |
SessionLocal = session.Session(autocommit=False, autoflush=False, bind=engine)
|
| 8 |
|
| 9 |
async def init_db():
|
|
|
|
| 10 |
SQLModel.metadata.create_all(engine)
|
| 11 |
+
print("Databse initialize....")
|
| 12 |
|
| 13 |
def get_session():
|
| 14 |
db = SessionLocal
|