From b59980067a7698199d2466ecbeebc6ad5253ed02 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Wed, 18 Oct 2017 11:08:54 +0300 Subject: old database format compatibility --- ext/bg/js/database.js | 6 +++--- 1 file 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, -- cgit v1.2.3