conf => config in saveDeckConfig

This commit is contained in:
David Bailey 2017-08-18 21:16:50 +01:00
parent 33908a6297
commit b6ab724dd7
2 changed files with 8 additions and 8 deletions

View File

@ -517,18 +517,18 @@ class AnkiBridge:
return self.collection().decks.confForDid(did)
def saveDeckConfig(self, conf):
configId = str(conf['id'])
def saveDeckConfig(self, config):
configId = str(config['id'])
if not configId in self.collection().decks.dconf:
return False
mod = anki.utils.intTime()
usn = self.collection().usn()
conf['mod'] = mod
conf['usn'] = usn
config['mod'] = mod
config['usn'] = usn
self.collection().decks.dconf[configId] = conf
self.collection().decks.dconf[configId] = config
self.collection().decks.changed = True
return True
@ -845,8 +845,8 @@ class AnkiConnect:
@webApi
def saveDeckConfig(self, conf):
return self.anki.saveDeckConfig(conf)
def saveDeckConfig(self, config):
return self.anki.saveDeckConfig(config)
@webApi

View File

@ -273,7 +273,7 @@ Below is a list of currently supported actions. Requests with invalid actions or
{
"action": "saveDeckConfig",
"params": {
"conf": (config group object)
"config": (config group object)
}
}
```