moriire commited on
Commit
b013066
1 Parent(s): fbe2880

Update app/db.py

Browse files
Files changed (1) hide show
  1. app/db.py +3 -3
app/db.py CHANGED
@@ -74,8 +74,8 @@ from fastapi_users.db import SQLAlchemyBaseUserTableUUID, SQLAlchemyUserDatabase
74
  from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
75
  from sqlalchemy.orm import DeclarativeBase
76
 
77
- #DATABASE_URL = "sqlite+aiosqlite:///./test.db"
78
-
79
  db_url = URL.create(
80
  "postgresql+asyncpg",
81
  username="avnadmin",
@@ -85,7 +85,7 @@ db_url = URL.create(
85
  port=14535,
86
  )
87
  DATABASE_URL = db_url
88
-
89
  class Base(DeclarativeBase):
90
  pass
91
 
 
74
  from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
75
  from sqlalchemy.orm import DeclarativeBase
76
 
77
+ DATABASE_URL = "sqlite+aiosqlite:///./test.db"
78
+ """
79
  db_url = URL.create(
80
  "postgresql+asyncpg",
81
  username="avnadmin",
 
85
  port=14535,
86
  )
87
  DATABASE_URL = db_url
88
+ """
89
  class Base(DeclarativeBase):
90
  pass
91