Revert "Fixing certain definitions not showing up"

This reverts commit 85015b1776.
This commit is contained in:
Alex Yatskov 2016-05-18 12:30:45 -07:00
parent 85015b1776
commit a306d73118

View File

@ -151,10 +151,9 @@ 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)) {
const groupId = `${source}_${entry.id}`; if (entry.id in groups) {
if (groupId in groups) {
continue; continue;
} }
@ -209,7 +208,7 @@ class Translator {
}); });
if (matched) { if (matched) {
groups[groupId] = { groups[entry.id] = {
expression: entry.expression, expression: entry.expression,
reading: entry.reading, reading: entry.reading,
glossary: entry.glossary, glossary: entry.glossary,