Fix parens typo and JSON response

This commit is contained in:
Glutanimate 2017-05-28 22:55:24 +02:00
parent d7e58c519a
commit 94cad0c322
2 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ class AnkiBridge:
browser = aqt.dialogs.open("Browser", self.window()) browser = aqt.dialogs.open("Browser", self.window())
browser.activateWindow() browser.activateWindow()
if query: if query:
query = unicode('"{}"'.format(query)) query = unicode('"{}"').format(query)
browser.form.searchEdit.lineEdit().setText(query) browser.form.searchEdit.lineEdit().setText(query)
browser.onSearch() browser.onSearch()
return browser.model.cards return browser.model.cards

View File

@ -330,7 +330,7 @@ rather than raw JSON. If you are writing raw requests be sure to send valid JSON
*Sample response*: *Sample response*:
``` ```
None null
``` ```
* **upgrade** * **upgrade**