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
7814f5b8
Commit
7814f5b8
authored
Apr 08, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refactoring-rom' into refactoring-alex
parents
513b09b9
bde5ec27
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 @
7814f5b8
...
...
@@ -174,13 +174,10 @@ class GroupChange(APIView):
NodeNgramNgram
.
ngram1_id
.
in_
(
all_nodes_involved
),
NodeNgramNgram
.
ngram2_id
.
in_
(
all_nodes_involved
)))
)
n_removed
=
old_links
.
count
()
old_links
.
delete
(
synchronize_session
=
'fetch'
)
print
(
'n_removed'
,
n_removed
)
print
(
"links"
,
links
)
print
(
[
i
for
i
in
((
group_node
,
mainform
,
subform
,
1.0
)
for
(
mainform
,
subform
)
in
links
)]
)
n_removed
=
old_links
.
delete
(
synchronize_session
=
False
)
session
.
commit
()
# add new groupings
bulk_insert
(
NodeNgramNgram
,
(
'node_id'
,
'ngram1_id'
,
'ngram2_id'
,
'weight'
),
...
...
@@ -194,7 +191,6 @@ class GroupChange(APIView):
class
ListChange
(
APIView
):
"""
Any ngram action on standard NodeNgram lists (MAIN, MAP, STOP)
...
...
static/css/gargantext/tables.css
View file @
7814f5b8
...
...
@@ -40,7 +40,10 @@ td .note {
span
.note
{
font-size
:
10px
;
color
:
#333
;
}
span
.note.glyphicon
{
color
:
#555
;
}
p
.note
{
...
...
@@ -99,7 +102,7 @@ tr:hover {
#group_box_mainform
{
margin-bottom
:
0
;
line-height
:
1
;
margin-left
:
.0
5
em
;
margin-left
:
.0
8
em
;
}
#group_box_content
{
...
...
static/js/gargantext/NGrams_dyna_chart_and_table.js
View file @
7814f5b8
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