api_replace

This commit is contained in:
dobefore 2021-09-15 14:05:09 +08:00 committed by Vikash Kothary
parent e4e9c51267
commit 443f3b6fe3

View File

@ -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
##########################################################################