diff --git a/AnkiConnect.py b/AnkiConnect.py index 9eb6595..e3ec3b8 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -511,7 +511,7 @@ class AnkiBridge: collection = self.collection() if collection is not None: deck = collection.decks.byName(name) - if (deck is not None): + if deck is not None: collection.decks.select(deck['id']) self.window().onOverview() return True @@ -519,7 +519,6 @@ class AnkiBridge: def guiDeckBrowser(self): self.window().moveToState("deckBrowser") - return True # # AnkiConnect diff --git a/README.md b/README.md index 2fb661c..a288292 100644 --- a/README.md +++ b/README.md @@ -392,7 +392,7 @@ Below is a list of currently supported actions. Requests with invalid actions or ``` * **guiDeckOverview** - Opens the Deck Overview screen for the deck with the given name; returns `true` if succeeded or `False` otherwise. + Opens the Deck Overview screen for the deck with the given name; returns `true` if succeeded or `false` otherwise. *Sample request*: ``` @@ -411,7 +411,7 @@ Below is a list of currently supported actions. Requests with invalid actions or * **guiDeckBrowser** - Opens the Deck Browser screen; returns `true` if succeeded or `null` otherwise. + Opens the Deck Browser screen. *Sample request*: ``` @@ -422,7 +422,7 @@ Below is a list of currently supported actions. Requests with invalid actions or *Sample response*: ``` - true + null ``` * **upgrade**