invert logic of thesaurus row exclusion
This commit is contained in:
parent
8be673cd56
commit
88980d403d
|
@ -387,10 +387,10 @@ class SyncFromPcfDbView(BrowserView):
|
|||
|
||||
cursor.execute('''SELECT t_thesaurus_term.id, t_thesaurus_term.term
|
||||
FROM t_thesaurus_term
|
||||
WHERE NOT EXISTS (
|
||||
WHERE EXISTS (
|
||||
SELECT * FROM t_thesaurus_rel
|
||||
WHERE sectermid = t_thesaurus_term.id
|
||||
AND t_thesaurus_rel.rel in ('HN', 'SN'))''')
|
||||
AND rel not in ('HN', 'SN'))''')
|
||||
terms = []
|
||||
while True:
|
||||
row = cursor.fetchone()
|
||||
|
|
Reference in New Issue