From c659660864cecf1ce2146330f1e58b6076cbd0fd Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 5 Feb 2010 13:07:42 +0900 Subject: [PATCH] don't send acq cards when there are cards to review & new cards shown last --- anki/deck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/deck.py b/anki/deck.py index 406a14d2a..d734728e0 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -321,7 +321,8 @@ type, due, interval, factor, priority from """ cards where type = 0 and isDue = 1 and combinedDue <= :now limit 30""", now=time.time()) d['rev'] = self.s.all(sel + rev + " limit 30") - if self.newCountToday: + if self.newCountToday and (self.newCardSpacing != NEW_CARDS_LAST or + not d['rev']): d['acq'] = self.s.all(sel + """ %s where factId in (select distinct factId from cards where factId in (select factId from %s limit 60))""" % (new, new))