Merge pull request #134 from qwhex/fix_getQA
Replace Card._getQA() with the new answer() and question()
This commit is contained in:
commit
671444e1da
2
link.sh
2
link.sh
@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
ln -s $(pwd)/plugin ~/.local/share/Anki2/addons21/AnkiConnectDev
|
ln -s $(pwd)/plugin ~/.local/share/Anki2/addons21/AnkiConnectDev
|
||||||
|
2
link_mac.sh
Executable file
2
link_mac.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
ln -s $(pwd)/plugin ~/Library/Application\ Support/Anki2/addons21/AnkiConnectDev
|
@ -796,8 +796,8 @@ class AnkiConnect:
|
|||||||
'cardId': card.id,
|
'cardId': card.id,
|
||||||
'fields': fields,
|
'fields': fields,
|
||||||
'fieldOrder': card.ord,
|
'fieldOrder': card.ord,
|
||||||
'question': card._getQA()['q'],
|
'question': card.question(),
|
||||||
'answer': card._getQA()['a'],
|
'answer': card.answer(),
|
||||||
'modelName': model['name'],
|
'modelName': model['name'],
|
||||||
'deckName': self.deckNameFromId(card.did),
|
'deckName': self.deckNameFromId(card.did),
|
||||||
'css': model['css'],
|
'css': model['css'],
|
||||||
@ -1051,8 +1051,8 @@ class AnkiConnect:
|
|||||||
'cardId': card.id,
|
'cardId': card.id,
|
||||||
'fields': fields,
|
'fields': fields,
|
||||||
'fieldOrder': card.ord,
|
'fieldOrder': card.ord,
|
||||||
'question': card._getQA()['q'],
|
'question': card.question(),
|
||||||
'answer': card._getQA()['a'],
|
'answer': card.answer(),
|
||||||
'buttons': [b[0] for b in buttonList],
|
'buttons': [b[0] for b in buttonList],
|
||||||
'nextReviews': [reviewer.mw.col.sched.nextIvlStr(reviewer.card, b[0], True) for b in buttonList],
|
'nextReviews': [reviewer.mw.col.sched.nextIvlStr(reviewer.card, b[0], True) for b in buttonList],
|
||||||
'modelName': model['name'],
|
'modelName': model['name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user