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