api_replace
This commit is contained in:
parent
e4e9c51267
commit
443f3b6fe3
@ -73,7 +73,7 @@ class Syncer(object):
|
|||||||
decks=self.getDecks(),
|
decks=self.getDecks(),
|
||||||
tags=self.getTags())
|
tags=self.getTags())
|
||||||
if self.lnewer:
|
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
|
d['crt'] = self.col.crt
|
||||||
return d
|
return d
|
||||||
|
|
||||||
@ -332,7 +332,7 @@ from notes where %s""" % lim, self.maxUsn)
|
|||||||
self.col.db.executemany(
|
self.col.db.executemany(
|
||||||
"insert or replace into notes values (?,?,?,?,?,?,?,?,?,?,?)",
|
"insert or replace into notes values (?,?,?,?,?,?,?,?,?,?,?)",
|
||||||
rows)
|
rows)
|
||||||
self.col.updateFieldCache([f[0] for f in rows])
|
self.col.after_note_updates([f[0] for f in rows],True)
|
||||||
|
|
||||||
# Col config
|
# Col config
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user