From 7a12888eb2518108e200a091c16096a3adf30db9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 21 Feb 2009 18:23:55 +0900 Subject: [PATCH] report new cards as new always, make sure they come before vhp if 'show first' --- anki/deck.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index f489405aa..0e4f9e2fb 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -198,13 +198,13 @@ limit 1""") "True if it's time to display a new card when distributing." if self.newCardSpacing == NEW_CARDS_LAST: return False + if self.newCardSpacing == NEW_CARDS_FIRST: + return True # force old if there are very high priority cards if self.s.scalar( "select 1 from cards where type = 1 and isDue = 1 " "and priority = 4 limit 1"): return False - if self.newCardSpacing == NEW_CARDS_FIRST: - return True if self.newCardModulus: return self._dailyStats.reps % self.newCardModulus == 0 else: @@ -872,10 +872,7 @@ and due < :now""", now=time.time()) def queueForCard(self, card): "Return the queue the current card is in." if self.cardIsNew(card): - if card.priority == 4: - return "rev" - else: - return "new" + return "new" elif card.successive == 0: return "failed" elif card.reps: