# HG changeset patch # User Thierry Florac # Date 1531297114 -7200 # Node ID 1d0d13ab56650a033c344b45353133d0e46f0df4 # Parent 51fae4ef929a9af763e7e75470b6010740c4352e Updated boolean test diff -r 51fae4ef929a -r 1d0d13ab5665 src/pyams_thesaurus/thesaurus.py --- a/src/pyams_thesaurus/thesaurus.py Tue Jul 10 16:57:58 2018 +0200 +++ b/src/pyams_thesaurus/thesaurus.py Wed Jul 11 10:18:34 2018 +0200 @@ -203,7 +203,7 @@ if (not term.generic) and (not term.usage)] def get_top_terms(self, extract=None): - if extract is None: + if not extract: return self.top_terms return [term for term in self.top_terms if extract in term.extracts]