fix MovedIn20Warning
shouldn't actually cause any issues currently since SQLAlchemy is (to my annoyance) import *ed everywhere but.
This commit is contained in:
parent
e61e35226d
commit
9b94e524bb
28 changed files with 32 additions and 29 deletions
|
@ -11,7 +11,6 @@ from flask_limiter import Limiter
|
|||
from flask_compress import Compress
|
||||
from flask_mail import Mail
|
||||
import flask_profiler
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import sessionmaker, scoped_session
|
||||
from sqlalchemy import *
|
||||
import gevent
|
||||
|
@ -150,8 +149,6 @@ limiter = Limiter(
|
|||
enabled=app.config['RATE_LIMITER_ENABLED'],
|
||||
)
|
||||
|
||||
Base = declarative_base()
|
||||
|
||||
engine = create_engine(app.config['DATABASE_URL'])
|
||||
|
||||
db_session = scoped_session(sessionmaker(bind=engine, autoflush=False))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue