diff --git a/analysis/functions.py b/analysis/functions.py index ff4d2bef36f85c8a9969ffb14c79889c687de519..100ab9b4981796e453e903781b02984eb64b575c 100644 --- a/analysis/functions.py +++ b/analysis/functions.py @@ -133,7 +133,7 @@ def create_cooc(user=None, corpus=None, whitelist=None, size=150): cursor.execute(query_cooc) return cooc -def get_cooc(request=None, corpus_id=None, cooc_id=None, type="node_link", n=150): +def get_cooc(request=None, corpus_id=None, cooc_id=None, type=None, n=150): import pandas as pd from copy import copy import numpy as np diff --git a/gargantext_web/urls.py b/gargantext_web/urls.py index 050fac13699f44682b512d54b534399d620c4f15..aa1d46f1bc825c2a5a9c5a4d5c0506a4a557d888 100644 --- a/gargantext_web/urls.py +++ b/gargantext_web/urls.py @@ -35,7 +35,7 @@ urlpatterns = patterns('', # Getting data url(r'^chart/corpus/(\d+)/data.csv$', views.send_csv), url(r'^corpus/(\d+)/node_link.json$', views.node_link), - url(r'^corpus/(\d+)/adjacency.json$', views.node_link), + url(r'^corpus/(\d+)/adjacency.json$', views.adjacency), url(r'^api$', gargantext_web.api.Root), url(r'^api/nodes/(\d+)/children/metadata$', gargantext_web.api.NodesChildrenMetatadata.as_view()), diff --git a/templates/matrix.html b/templates/matrix.html index 41490f4cb37207388caf410a19710c9e978729a7..62f1a31d978703b8c36a69dcc540a2fbef6711cd 100644 --- a/templates/matrix.html +++ b/templates/matrix.html @@ -29,7 +29,7 @@ text.active { <div class="container theme-showcase" role="main"> <div class="jumbotron"> - <h1>Adjancy Matrix</h1> + <h1>Adjacency Matrix</h1> </div> </div>