do not empty null equivs

This commit is contained in:
Frédéric Péters 2014-03-26 18:16:45 +01:00
parent a3ffae8322
commit 85f0820005
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class ImportJson(BrowserView):
raw=term.get('scope_note'),
mimeType='text/html',
outputMimeType='text/x-html-safe')
object.equivs = term.get('equivalents')
object.equivs = [x for x in term.get('equivalents') or [] if x]
# 2nd step; add relations
for term_id, term in terms.items():