mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
fix 'delete' option of media check
This commit is contained in:
parent
e1aa79336c
commit
3afcf982dd
1 changed files with 3 additions and 2 deletions
|
|
@ -85,8 +85,9 @@ def _modifyFields(deck, fieldsToUpdate, modifiedFacts, dirty):
|
|||
deck.s.statement(
|
||||
"update facts set modified = :time where id in %s" %
|
||||
factIds, time=time.time())
|
||||
ids = deck.s.all("""select cards.id, cards.cardModelId, facts.id
|
||||
from cards, facts where cards.factId = facts.id and facts.id in %s"""
|
||||
ids = deck.s.all("""select cards.id, cards.cardModelId, facts.id,
|
||||
facts.modelId from cards, facts where
|
||||
cards.factId = facts.id and facts.id in %s"""
|
||||
% factIds)
|
||||
deck.updateCardQACache(ids, dirty)
|
||||
deck.flushMod()
|
||||
|
|
|
|||
Loading…
Reference in a new issue