Commit 0613100d authored by delanoe's avatar delanoe

[FIX] session and some errors (after merge conflict).

parent c59dd93b
......@@ -13,6 +13,7 @@ import collections
from gargantext_web.views import move_to_trash
from gargantext_web.db import *
from gargantext_web.db import get_session
from gargantext_web.validation import validate, ValidationException
from node import models
......@@ -101,6 +102,8 @@ class NodeNgramsQueries(APIView):
def post(self, request, project_id):
# example only
session = get_session()
input = request.data or {
'x': {
'with_empty': True,
......@@ -256,3 +259,5 @@ class NodeNgramsQueries(APIView):
}, 201)
elif input['format'] == 'csv':
return CsvHttpResponse(sorted(result.items()), ('date', 'value'), 201)
session.remove()
......@@ -420,4 +420,3 @@ def text_prepa(my_str):
my_str = sub(r'ꜩ', 'tz', my_str)
return my_str
>>>>>>> origin/romain-text_cleaner
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