Fixing certain definitions not showing up

This commit is contained in:
Alex Yatskov 2016-05-18 12:19:40 -07:00
parent 7dcad6bd71
commit 85015b1776

View File

@ -151,9 +151,10 @@ class Translator {
return definitions; return definitions;
} }
processTerm(groups, source, tags, rules=[], root='') { processTerm(groups, source, tags, rules=[], root) {
for (const entry of this.dictionary.findTerm(root)) { for (const entry of this.dictionary.findTerm(root)) {
if (entry.id in groups) { const groupId = `${source}_${entry.id}`;
if (groupId in groups) {
continue; continue;
} }
@ -208,7 +209,7 @@ class Translator {
}); });
if (matched) { if (matched) {
groups[entry.id] = { groups[groupId] = {
expression: entry.expression, expression: entry.expression,
reading: entry.reading, reading: entry.reading,
glossary: entry.glossary, glossary: entry.glossary,