~kevang/mnemosyne-proj/grade-shortcuts-improvements

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/libmnemosyne/databases/pickle.py

  • Committer: Peter Bienstman
  • Date: 2008-08-01 18:33:05 UTC
  • Revision ID: peter.bienstman@ugent.be-20080801183305-vadbiuurs4t86egc
Work on card (in progress).

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
    def delete_fact(self, fact):
307
307
        raise NotImplementedError
308
308
    
309
 
    def add_card(self, card): # Should also link fact to new card!
 
309
    def add_card(self, card):
310
310
        self.load_failed = False
311
311
        self.cards.append(card)
312
 
        card.fact.cards.append(card)
 
312
        new_interval = start_date.days_since_start() - card.next_rep
 
313
        log.info("New card %s %d %d", card.id, card.grade, new_interval)
313
314
 
314
315
    def modify_card(self, id, modified_card):
315
316
        raise NotImplementedError