summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-18 11:08:54 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-18 11:08:54 +0300
commitb59980067a7698199d2466ecbeebc6ad5253ed02 (patch)
tree3cb79b857b7bc1730cf20479892c84f642e80e44 /ext/bg/js
parent2cbbcd242e3eeeb4d7a6167d7917d53bd9424551 (diff)
old database format compatibility
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/database.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index dea78196..15291968 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -71,7 +71,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,
@@ -97,7 +97,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,
@@ -123,7 +123,7 @@ class Database {
results.push({
expression: row.expression,
reading: row.reading,
- definitionTags: dictFieldSplit(row.definitionTags),
+ definitionTags: dictFieldSplit(row.definitionTags || row.tags || ''),
termTags: dictFieldSplit(row.termTags || ''),
rules: dictFieldSplit(row.rules),
glossary: row.glossary,