From de18f59474772e8264d589e1ddbb359b8e59b0bb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 24 Oct 2010 14:21:21 +0900 Subject: [PATCH] compat hack for suspended cards on older platforms --- anki/deck.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/anki/deck.py b/anki/deck.py index f5594e287..c5f61bb63 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -3049,6 +3049,10 @@ class DeckStorage(object): deck.currentModel = deck.models[0] # ensure the necessary indices are available deck.updateDynamicIndices() + # FIXME: temporary code to ensure cards suspended on older clients are + # recognized + deck.s.statement(""" +update cards set type = type + 3 where type < 3 and priority <= 0""") # unsuspend reviewed early & buried ids = deck.s.column0( "select id from cards where type in (3,4,5) and priority in (-1, -2)")