Commit 7814f5b8 authored by delanoe's avatar delanoe

Merge branch 'refactoring-rom' into refactoring-alex

parents 513b09b9 bde5ec27
...@@ -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)
......
...@@ -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: .05em ; margin-left: .08em ;
} }
#group_box_content { #group_box_content {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment