From 443f3b6fe385cfd6c7e13c5da524fcbbf9f200fa Mon Sep 17 00:00:00 2001 From: dobefore <1432338032@qq.com> Date: Wed, 15 Sep 2021 14:05:09 +0800 Subject: [PATCH] api_replace --- src/ankisyncd/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ankisyncd/sync.py b/src/ankisyncd/sync.py index 7ddabd9..e194cad 100644 --- a/src/ankisyncd/sync.py +++ b/src/ankisyncd/sync.py @@ -73,7 +73,7 @@ class Syncer(object): decks=self.getDecks(), tags=self.getTags()) if self.lnewer: - d['conf'] = json.loads(self.col.backend.get_all_config()) + d['conf'] = json.loads(self.col.all_config()) d['crt'] = self.col.crt return d @@ -332,7 +332,7 @@ from notes where %s""" % lim, self.maxUsn) self.col.db.executemany( "insert or replace into notes values (?,?,?,?,?,?,?,?,?,?,?)", rows) - self.col.updateFieldCache([f[0] for f in rows]) + self.col.after_note_updates([f[0] for f in rows],True) # Col config ##########################################################################