Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
0613100d
Commit
0613100d
authored
Jan 14, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] session and some errors (after merge conflict).
parent
c59dd93b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
api2.py
gargantext_web/api2.py
+5
-0
corpustools.py
parsing/corpustools.py
+0
-1
No files found.
gargantext_web/api2.py
View file @
0613100d
...
...
@@ -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
()
parsing/corpustools.py
View file @
0613100d
...
...
@@ -420,4 +420,3 @@ def text_prepa(my_str):
my_str
=
sub
(
r'ꜩ'
,
'tz'
,
my_str
)
return
my_str
>>>>>>>
origin
/
romain
-
text_cleaner
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment