conf => config in saveDeckConfig
This commit is contained in:
parent
33908a6297
commit
b6ab724dd7
@ -517,18 +517,18 @@ class AnkiBridge:
|
|||||||
return self.collection().decks.confForDid(did)
|
return self.collection().decks.confForDid(did)
|
||||||
|
|
||||||
|
|
||||||
def saveDeckConfig(self, conf):
|
def saveDeckConfig(self, config):
|
||||||
configId = str(conf['id'])
|
configId = str(config['id'])
|
||||||
if not configId in self.collection().decks.dconf:
|
if not configId in self.collection().decks.dconf:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
mod = anki.utils.intTime()
|
mod = anki.utils.intTime()
|
||||||
usn = self.collection().usn()
|
usn = self.collection().usn()
|
||||||
|
|
||||||
conf['mod'] = mod
|
config['mod'] = mod
|
||||||
conf['usn'] = usn
|
config['usn'] = usn
|
||||||
|
|
||||||
self.collection().decks.dconf[configId] = conf
|
self.collection().decks.dconf[configId] = config
|
||||||
self.collection().decks.changed = True
|
self.collection().decks.changed = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@ -845,8 +845,8 @@ class AnkiConnect:
|
|||||||
|
|
||||||
|
|
||||||
@webApi
|
@webApi
|
||||||
def saveDeckConfig(self, conf):
|
def saveDeckConfig(self, config):
|
||||||
return self.anki.saveDeckConfig(conf)
|
return self.anki.saveDeckConfig(config)
|
||||||
|
|
||||||
|
|
||||||
@webApi
|
@webApi
|
||||||
|
Loading…
Reference in New Issue
Block a user