From 015effb244be30eeee34a61080216de1ec2e2625 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Wed, 11 Jul 2012 12:47:08 +0200 Subject: Minor usability & presentation changes. --- lib/study/deck.php | 2 +- lib/study/setcard.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/study/deck.php b/lib/study/deck.php index 99119ef..752ff98 100644 --- a/lib/study/deck.php +++ b/lib/study/deck.php @@ -78,7 +78,7 @@ $filters = array( "way" => $ord_ways, ); $fdefaults = array( - "what" => "level > 0 AND level < 4", + "what" => "level > 0 AND next_review <= CURDATE()", "order" => "level", "way" => "ASC", ); diff --git a/lib/study/setcard.php b/lib/study/setcard.php index 13f3fc0..c71bbfe 100644 --- a/lib/study/setcard.php +++ b/lib/study/setcard.php @@ -22,7 +22,7 @@ assert_error($info['cardnumber'] <= $info['last_card'] + 1, "You must first add $level = intval($args[3]); assert_error($level >= 0 && $level <= 7, "That level is invalid."); -$intervals = array(999999, 1, 3, 5, 8, 16, 24, 999999); +$intervals = array(999999, 1, 2, 4, 8, 16, 32, 999999); if ($info['cardnumber'] == $info['last_card'] + 1) { sql("INSERT INTO card_study(deck_study, card, level, next_review) ". -- cgit v1.2.3