~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/schedulers/SM2_mnemosyne.py

  • Committer: Peter Bienstman
  • Date: 2017-03-24 18:40:39 UTC
  • Revision ID: peter.bienstman@ugent.be-20170324184039-cbecoelgmdu72iag
Study mode bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        self._fact_ids_in_queue = []
141
141
        self._fact_ids_memorised = []
142
142
        self._card_id_last = None
143
 
        if new_only == False:
 
143
        self.new_only = new_only
 
144
        if self.new_only == False:
144
145
            self.stage = 1
145
146
        else:
146
147
            self.stage = 3
353
354
        # earliest scheduled cards first. We only put 50 cards at the same
354
355
        # time into the queue, in order to save memory.
355
356
        if learn_ahead == False:
356
 
            self.stage = 2
 
357
            if self.new_only == False:
 
358
                self.stage = 2
 
359
            else:
 
360
                self.stage = 3            
357
361
            return
358
362
        for _card_id, _fact_id in db.cards_learn_ahead(self.adjusted_now(),
359
363
                sort_key="next_rep", limit=50):