diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-09-13 18:03:55 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-09-13 18:03:55 -0700 |
commit | 33d9d6ff573d72a8b1600b23b20faf2b0ca4419c (patch) | |
tree | 974267041c319fa06e587911d9969631da45e300 /ext/bg/js/translator.js | |
parent | 04f9a0f54316d123628168aa5a15e8e48907d783 (diff) |
cleanup
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r-- | ext/bg/js/translator.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 5de99e8e..0ecae16b 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -137,11 +137,13 @@ class Translator { async buildTags(names, title) { const results = []; for (const name of names) { - const meta = await this.database.findTag(name.split(':')[0], title); + const meta = await this.database.findTagForTitle(name.split(':')[0], title); const result = {name}; for (const prop in meta || {}) { - result[prop] = meta[prop]; + if (prop !== 'name') { + result[prop] = meta[prop]; + } } results.push(dictTagSanitize(result)); |