author | Thierry Florac <thierry.florac@onf.fr> |
Wed, 11 Jul 2018 10:18:34 +0200 | |
changeset 76 | 1d0d13ab5665 |
parent 75 | 51fae4ef929a |
child 77 | 5eb2f0ff9ba3 |
--- 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]