Commit 6be1923e authored by Administrator's avatar Administrator

[FEATURE] SQL change for whitelist

parent 55ef4547
......@@ -46,12 +46,16 @@ def create_whitelist(user, corpus):
node_node_ngram AS nngX ON nngX.node_id = n.id
INNER JOIN
node_ngram AS ngX ON ngX.id = nngX.ngram_id
LEFT JOIN
node_ngram AS black ON ngX.terms = black.terms
WHERE
black.terms IS NULL
WHERE
n.parent_id = %d
AND
n.type_id = %d
AND
ngX.n >= 1
ngX.n >= 2
GROUP BY
ngX.id
......
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