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
461caaf9
Commit
461caaf9
authored
Apr 08, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refactoring-rom' into refactoring-alex
parents
e95e2317
baf93fa4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
138 additions
and
60 deletions
+138
-60
ngramlists.py
gargantext/views/api/ngramlists.py
+4
-8
tables.css
static/css/gargantext/tables.css
+5
-2
NGrams_dyna_chart_and_table.js
static/js/gargantext/NGrams_dyna_chart_and_table.js
+129
-50
No files found.
gargantext/views/api/ngramlists.py
View file @
461caaf9
...
@@ -174,13 +174,10 @@ class GroupChange(APIView):
...
@@ -174,13 +174,10 @@ class GroupChange(APIView):
NodeNgramNgram
.
ngram1_id
.
in_
(
all_nodes_involved
),
NodeNgramNgram
.
ngram1_id
.
in_
(
all_nodes_involved
),
NodeNgramNgram
.
ngram2_id
.
in_
(
all_nodes_involved
)))
NodeNgramNgram
.
ngram2_id
.
in_
(
all_nodes_involved
)))
)
)
n_removed
=
old_links
.
count
()
n_removed
=
old_links
.
delete
(
synchronize_session
=
False
)
old_links
.
delete
(
synchronize_session
=
'fetch'
)
session
.
commit
()
print
(
'n_removed'
,
n_removed
)
print
(
"links"
,
links
)
# add new groupings
print
(
[
i
for
i
in
((
group_node
,
mainform
,
subform
,
1.0
)
for
(
mainform
,
subform
)
in
links
)]
)
bulk_insert
(
bulk_insert
(
NodeNgramNgram
,
NodeNgramNgram
,
(
'node_id'
,
'ngram1_id'
,
'ngram2_id'
,
'weight'
),
(
'node_id'
,
'ngram1_id'
,
'ngram2_id'
,
'weight'
),
...
@@ -194,7 +191,6 @@ class GroupChange(APIView):
...
@@ -194,7 +191,6 @@ class GroupChange(APIView):
class
ListChange
(
APIView
):
class
ListChange
(
APIView
):
"""
"""
Any ngram action on standard NodeNgram lists (MAIN, MAP, STOP)
Any ngram action on standard NodeNgram lists (MAIN, MAP, STOP)
...
...
static/css/gargantext/tables.css
View file @
461caaf9
...
@@ -40,7 +40,10 @@ td .note {
...
@@ -40,7 +40,10 @@ td .note {
span
.note
{
span
.note
{
font-size
:
10px
;
font-size
:
10px
;
color
:
#333
;
}
span
.note.glyphicon
{
color
:
#555
;
}
}
p
.note
{
p
.note
{
...
@@ -99,7 +102,7 @@ tr:hover {
...
@@ -99,7 +102,7 @@ tr:hover {
#group_box_mainform
{
#group_box_mainform
{
margin-bottom
:
0
;
margin-bottom
:
0
;
line-height
:
1
;
line-height
:
1
;
margin-left
:
.0
5
em
;
margin-left
:
.0
8
em
;
}
}
#group_box_content
{
#group_box_content
{
...
...
static/js/gargantext/NGrams_dyna_chart_and_table.js
View file @
461caaf9
This diff is collapsed.
Click to expand it.
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