invert logic of thesaurus row exclusion

This commit is contained in:
Frédéric Péters 2011-11-11 21:44:08 +01:00
parent 8be673cd56
commit 88980d403d
1 changed files with 2 additions and 2 deletions

View File

@ -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()