moriire commited on
Commit
46904ba
1 Parent(s): 33b9d02

Update database.py

Browse files
Files changed (1) hide show
  1. database.py +2 -2
database.py CHANGED
@@ -20,8 +20,8 @@ SQLALCHEMY_DATABASE_URL = db_url # "ibmabdulsalam.mysql.pythonanywhere-services.
20
  #SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
21
 
22
  engine = create_engine(
23
- SQLALCHEMY_DATABASE_URL, echo=True)#, connect_args={"check_same_thread": False}
24
- )
25
  SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
26
 
27
  Base = declarative_base()
 
20
  #SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
21
 
22
  engine = create_engine(
23
+ SQLALCHEMY_DATABASE_URL, echo=True
24
+ )#, connect_args={"check_same_thread": False}
25
  SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
26
 
27
  Base = declarative_base()