master
Aevann1 2021-09-17 10:30:47 +02:00
parent 1aa81273d5
commit d96d827586
1 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from flask_compress import Compress
from flask_limiter.util import get_ipaddr
from flaskext.markdown import Markdown
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session, Query as _Query
from sqlalchemy.orm import lazyload, sessionmaker, scoped_session, Query as _Query
from sqlalchemy import *
from sqlalchemy.pool import QueuePool
import redis
@ -84,8 +84,7 @@ _engine=create_engine(
app.config['DATABASE_URL'],
poolclass=QueuePool,
pool_size=int(environ.get("PG_POOL_SIZE",10)),
pool_use_lifo=True,
echo=True
pool_use_lifo=True
)
def retry(f):