Commit d35dd88e authored by Romain Loth's avatar Romain Loth

removing debug comments

parent 1ad5151d
...@@ -206,9 +206,9 @@ class GroupChange(APIView): ...@@ -206,9 +206,9 @@ class GroupChange(APIView):
# the others params are links to change # the others params are links to change
couples = self.links_to_couples(params) couples = self.links_to_couples(params)
# £debug # debug
print("==couples from url =================================++++=") # print("==couples from url =================================++++=")
print(couples) # print(couples)
# local version of "insert if not exists" -------------------->8-------- # local version of "insert if not exists" -------------------->8--------
# (1) check already existing elements # (1) check already existing elements
...@@ -224,18 +224,18 @@ class GroupChange(APIView): ...@@ -224,18 +224,18 @@ class GroupChange(APIView):
for synonyms in check_query.all(): for synonyms in check_query.all():
existing[(synonyms.ngram1_id,synonyms.ngram2_id)] = True existing[(synonyms.ngram1_id,synonyms.ngram2_id)] = True
# £debug # debug
print("==existing") #print("==existing")
print(existing) #print(existing)
# (2) compute difference locally # (2) compute difference locally
couples_to_add = [(mform,sform) for (mform,sform) couples_to_add = [(mform,sform) for (mform,sform)
in couples in couples
if (mform,sform) not in existing] if (mform,sform) not in existing]
# £debug # debug
print("== couples_to_add =================================++++=") # print("== couples_to_add =================================++++=")
print(couples_to_add) # print(couples_to_add)
# (3) add new groupings # (3) add new groupings
...@@ -268,9 +268,9 @@ class GroupChange(APIView): ...@@ -268,9 +268,9 @@ class GroupChange(APIView):
# the others params are links to change # the others params are links to change
couples_to_remove = self.links_to_couples(params) couples_to_remove = self.links_to_couples(params)
# £debug # debug
print("==couples_to_remove=================================dd=") # print("==couples_to_remove=================================dd=")
print(couples_to_remove) # print(couples_to_remove)
# remove selectively group_couples # remove selectively group_couples
# using IN is correct in this case: list of ids is short and external # using IN is correct in this case: list of ids is short and external
......
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