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
0f4bb6cb
Commit
0f4bb6cb
authored
Mar 23, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix access url to ngram table
parent
39b176f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
terms.py
gargantext/views/pages/terms.py
+5
-10
urls.py
gargantext/views/pages/urls.py
+4
-1
No files found.
gargantext/views/pages/terms.py
View file @
0f4bb6cb
from
gargantext.util.http
import
requires_auth
,
render
,
settings
from
gargantext.util.db
import
session
from
gargantext.util.http
import
requires_auth
,
render
,
settings
from
gargantext.util.db
import
session
from
gargantext.util.db_cache
import
cache
from
gargantext.models
import
Node
# from gargantext.constants import *
#
# from gargantext.util.scheduling import scheduled
# from gargantext.util.toolchain import parse_extract
from
datetime
import
datetime
from
gargantext.models
import
Node
from
datetime
import
datetime
@
requires_auth
def
ngram
lists
(
request
,
project_id
,
corpus_id
):
def
ngram
table
(
request
,
project_id
,
corpus_id
):
'''
Browse and modify all lists together.
=> maplist and mainlist terms in a table
...
...
gargantext/views/pages/urls.py
View file @
0f4bb6cb
from
django.conf.urls
import
url
from
.
import
main
,
auth
from
.
import
projects
,
corpora
from
.
import
projects
,
corpora
,
terms
urlpatterns
=
[
...
...
@@ -25,4 +25,7 @@ urlpatterns = [
# corpus by journals
url
(
r'^projects/(\d+)/corpora/(\d+)/journals/?$'
,
corpora
.
docs_by_journals
),
# terms table for the corpus
url
(
r'^projects/(\d+)/corpora/(\d+)/terms/?$'
,
terms
.
ngramtable
),
]
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