From 94cad0c322d1aefc8bd66aa06bc5ac02e977fb5f Mon Sep 17 00:00:00 2001 From: Glutanimate Date: Sun, 28 May 2017 22:55:24 +0200 Subject: [PATCH] Fix parens typo and JSON response --- AnkiConnect.py | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index c6d03f1..f54a4ee 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -421,7 +421,7 @@ class AnkiBridge: browser = aqt.dialogs.open("Browser", self.window()) browser.activateWindow() if query: - query = unicode('"{}"'.format(query)) + query = unicode('"{}"').format(query) browser.form.searchEdit.lineEdit().setText(query) browser.onSearch() return browser.model.cards diff --git a/README.md b/README.md index b43aa23..fb0fb62 100644 --- a/README.md +++ b/README.md @@ -330,7 +330,7 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON *Sample response*: ``` - None + null ``` * **upgrade**