mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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(
|
deck.s.statement(
|
||||||
"update facts set modified = :time where id in %s" %
|
"update facts set modified = :time where id in %s" %
|
||||||
factIds, time=time.time())
|
factIds, time=time.time())
|
||||||
ids = deck.s.all("""select cards.id, cards.cardModelId, facts.id
|
ids = deck.s.all("""select cards.id, cards.cardModelId, facts.id,
|
||||||
from cards, facts where cards.factId = facts.id and facts.id in %s"""
|
facts.modelId from cards, facts where
|
||||||
|
cards.factId = facts.id and facts.id in %s"""
|
||||||
% factIds)
|
% factIds)
|
||||||
deck.updateCardQACache(ids, dirty)
|
deck.updateCardQACache(ids, dirty)
|
||||||
deck.flushMod()
|
deck.flushMod()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue