summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-10-29 10:42:39 -0700
committerAlex Yatskov <alex@foosoft.net>2017-10-29 10:42:39 -0700
commitc62cc01642b29c13a38f3bcc08f2fa144107c158 (patch)
tree571bf3c63b405ebb9c69ca8f687f91e1950d14c4 /ext/bg/js/util.js
parent7d29e5b533a4607d1580cb6982de3870605805af (diff)
simplify database interface
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 091137ed..216cef3f 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -75,16 +75,12 @@ function utilAnkiGetDeckNames() {
return utilBackend().anki.getDeckNames();
}
-function utilAnkiGetModelFieldNames(modelName) {
- return utilBackend().anki.getModelFieldNames(modelName);
-}
-
-function utilDatabaseGetTitles() {
- return utilBackend().translator.database.getTitles();
+function utilDatabaseSummarize() {
+ return utilBackend().translator.database.summarize();
}
-function utilDatabaseGetTitlesWithSequences() {
- return utilBackend().translator.database.getTitlesWithSequences();
+function utilAnkiGetModelFieldNames(modelName) {
+ return utilBackend().anki.getModelFieldNames(modelName);
}
function utilDatabasePurge() {