Commit 0810ed12 authored by delanoe's avatar delanoe

[FIX] sessions.

parent fa695c8e
...@@ -138,8 +138,10 @@ def get_sessionmaker(): ...@@ -138,8 +138,10 @@ def get_sessionmaker():
def get_session(): def get_session():
Session = get_sessionmaker() Session = get_sessionmaker()
get_ = scoped_session(Session) return scoped_session(Session)
return get_()
#get_ = scoped_session(Session)
#return get_()
session = get_session() session = get_session()
# SQLAlchemy model objects caching # SQLAlchemy model objects caching
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment