From a095a8bb07b007b386637e0819682691ff463df7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 8 May 2020 15:25:54 +1000 Subject: [PATCH] fix due of preview cards being reset https://anki.tenderapp.com/discussions/ankidesktop/41243-undo-function-causes-error-in-filtered-decks --- pylib/anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index 90c13bee1..8b151ad91 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -950,7 +950,7 @@ select id from cards where odid > 0 and did in %s""" self.db.execute( """ update cards set due=1000000+due%1000000,mod=?,usn=? where due>=1000000 -and type=0""", +and type=0 and queue!=4""", intTime(), self.usn(), )