rename function

This commit is contained in:
Damien Elmes 2008-12-23 15:44:29 +09:00
parent 9a9082529b
commit 41fe0c92be

View file

@ -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()