From b6ab724dd718cda0d6e7122090cda30d2233ddec Mon Sep 17 00:00:00 2001 From: David Bailey Date: Fri, 18 Aug 2017 21:16:50 +0100 Subject: [PATCH] conf => config in saveDeckConfig --- AnkiConnect.py | 14 +++++++------- README.md | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index ef01195..1d6d93e 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -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 diff --git a/README.md b/README.md index 02ef413..1f35bcc 100644 --- a/README.md +++ b/README.md @@ -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) } } ```