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
d0581fa4
Commit
d0581fa4
authored
Mar 23, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix access url to ngram table
parent
ab340477
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 @
d0581fa4
from
gargantext.util.http
import
requires_auth
,
render
,
settings
from
gargantext.util.http
import
requires_auth
,
render
,
settings
from
gargantext.util.db
import
session
from
gargantext.util.db
import
session
from
gargantext.util.db_cache
import
cache
from
gargantext.util.db_cache
import
cache
from
gargantext.models
import
Node
from
gargantext.models
import
Node
# from gargantext.constants import *
from
datetime
import
datetime
#
# from gargantext.util.scheduling import scheduled
# from gargantext.util.toolchain import parse_extract
from
datetime
import
datetime
@
requires_auth
@
requires_auth
def
ngram
lists
(
request
,
project_id
,
corpus_id
):
def
ngram
table
(
request
,
project_id
,
corpus_id
):
'''
'''
Browse and modify all lists together.
Browse and modify all lists together.
=> maplist and mainlist terms in a table
=> maplist and mainlist terms in a table
...
...
gargantext/views/pages/urls.py
View file @
d0581fa4
from
django.conf.urls
import
url
from
django.conf.urls
import
url
from
.
import
main
,
auth
from
.
import
main
,
auth
from
.
import
projects
,
corpora
from
.
import
projects
,
corpora
,
terms
urlpatterns
=
[
urlpatterns
=
[
...
@@ -25,4 +25,7 @@ urlpatterns = [
...
@@ -25,4 +25,7 @@ urlpatterns = [
# corpus by journals
# corpus by journals
url
(
r'^projects/(\d+)/corpora/(\d+)/journals/?$'
,
corpora
.
docs_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