Commit 5dda52b0 authored by delanoe's avatar delanoe

[SESSION] session creator.

parent c13ecc7f
......@@ -140,8 +140,8 @@ def get_session():
Session = get_sessionmaker()
return scoped_session(Session)
session = get_session()
sessioncreator = get_session()
session = sessioncreator()
# SQLAlchemy model objects caching
from sqlalchemy import or_
......
......@@ -15,7 +15,9 @@ from threading import Thread
from node.admin import CustomForm
from gargantext_web.db import *
from gargantext_web.db import get_or_create_node, session
from gargantext_web.db import get_or_create_node
from gargantext_web.views import session
from gargantext_web.settings import DEBUG, MEDIA_ROOT
from rest_v1_0.api import JsonHttpResponse
from django.db import connection
......
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