From 13c54e02d8fd2b35f6c2f4b796fc44dec65043b8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Jul 2018 20:28:14 +1000 Subject: [PATCH] don't pull learning cards into v1 filtered deck preventing emptying is harder - operations like suspending don't expect remFromDyn() to fail --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 19fc17275..ca0b63dde 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -957,7 +957,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)""" orderlimit = self._dynOrder(order, limit) if search.strip(): search = "(%s)" % search - search = "%s -is:suspended -is:buried -deck:filtered" % search + search = "%s -is:suspended -is:buried -deck:filtered -is:learn" % search try: ids = self.col.findCards(search, order=orderlimit) except: