Update quotes
This commit is contained in:
parent
c0cdc8e575
commit
a575388392
@ -1006,7 +1006,7 @@ class AnkiConnect:
|
|||||||
@util.api()
|
@util.api()
|
||||||
def getLatestReviewID(self, deck):
|
def getLatestReviewID(self, deck):
|
||||||
return self.database().scalar(
|
return self.database().scalar(
|
||||||
"select max(id) from revlog where cid in (select id from cards where did=?)",
|
'select max(id) from revlog where cid in (select id from cards where did=?)',
|
||||||
self.decks().id(deck)
|
self.decks().id(deck)
|
||||||
) or 0
|
) or 0
|
||||||
|
|
||||||
@ -1017,7 +1017,7 @@ class AnkiConnect:
|
|||||||
did = self.decks().id(data['deck'])
|
did = self.decks().id(data['deck'])
|
||||||
self.decks().flush()
|
self.decks().flush()
|
||||||
model_manager = self.collection().models
|
model_manager = self.collection().models
|
||||||
for _, card in data["cards"].items():
|
for _, card in data['cards'].items():
|
||||||
self.database().execute(
|
self.database().execute(
|
||||||
'replace into cards (id, nid, did, ord, type, queue, due, ivl, factor, reps, lapses, left, '
|
'replace into cards (id, nid, did, ord, type, queue, due, ivl, factor, reps, lapses, left, '
|
||||||
'mod, usn, odue, odid, flags, data) '
|
'mod, usn, odue, odid, flags, data) '
|
||||||
@ -1169,8 +1169,8 @@ class AnkiConnect:
|
|||||||
self.modelHasChanged = True
|
self.modelHasChanged = True
|
||||||
super().__init__(mw)
|
super().__init__(mw)
|
||||||
|
|
||||||
self.addButton.setText("Add and Close")
|
self.addButton.setText('Add and Close')
|
||||||
self.addButton.setShortcut(aqt.qt.QKeySequence("Ctrl+Return"))
|
self.addButton.setShortcut(aqt.qt.QKeySequence('Ctrl+Return'))
|
||||||
|
|
||||||
def _addCards(self):
|
def _addCards(self):
|
||||||
super()._addCards()
|
super()._addCards()
|
||||||
|
Loading…
Reference in New Issue
Block a user