mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
rename function
This commit is contained in:
parent
9a9082529b
commit
41fe0c92be
1 changed files with 3 additions and 3 deletions
|
@ -1198,7 +1198,7 @@ facts.modelId = :id""", id=model.id)
|
||||||
return
|
return
|
||||||
self.updateCardQACache(ids, dirty)
|
self.updateCardQACache(ids, dirty)
|
||||||
|
|
||||||
def updateCardQACacheFromCardIds(self, ids, type="cards"):
|
def updateCardQACacheFromIds(self, ids, type="cards"):
|
||||||
"Given a list of card or fact ids, update q/a cache."
|
"Given a list of card or fact ids, update q/a cache."
|
||||||
if type == "cards":
|
if type == "cards":
|
||||||
col = "c.id"
|
col = "c.id"
|
||||||
|
@ -1312,7 +1312,7 @@ where id = :id""", pending)
|
||||||
cardIds = self.s.column0(
|
cardIds = self.s.column0(
|
||||||
"select id from cards where factId in %s" %
|
"select id from cards where factId in %s" %
|
||||||
ids2str(ids))
|
ids2str(ids))
|
||||||
self.updateCardQACacheFromCardIds(ids, type="facts")
|
self.updateCardQACacheFromIds(ids, type="facts")
|
||||||
self.updatePriorities(cardIds)
|
self.updatePriorities(cardIds)
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
|
|
||||||
|
@ -1340,7 +1340,7 @@ where id = :id""", pending)
|
||||||
cardIds = self.s.column0(
|
cardIds = self.s.column0(
|
||||||
"select id from cards where factId in %s" %
|
"select id from cards where factId in %s" %
|
||||||
ids2str(ids))
|
ids2str(ids))
|
||||||
self.updateCardQACacheFromCardIds(ids, type="facts")
|
self.updateCardQACacheFromIds(ids, type="facts")
|
||||||
self.updatePriorities(cardIds)
|
self.updatePriorities(cardIds)
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue