From c60e22fd609cc8906cb57f667317bfa731a71311 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 11 Jul 2018 20:35:08 +1000 Subject: [PATCH] separate cram into review cards(resched=1) and all cards(resched=0) rescheduling on is useful for preventing extra work, but when applied to new cards it will leave the user with a large number of reviews --- aqt/customstudy.py | 7 ++++++- designer/customstudy.ui | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/aqt/customstudy.py b/aqt/customstudy.py index 97ed08085..384ac0364 100644 --- a/aqt/customstudy.py +++ b/aqt/customstudy.py @@ -16,7 +16,8 @@ RADIO_CRAM = 6 TYPE_NEW = 0 TYPE_DUE = 1 -TYPE_ALL = 2 +TYPE_REVIEW = 2 +TYPE_ALL = 3 class CustomStudy(QDialog): def __init__(self, mw): @@ -151,6 +152,10 @@ class CustomStudy(QDialog): terms = "is:due " ord = DYN_DUE dyn['resched'] = True + elif type == TYPE_REVIEW: + terms = "-is:new " + ord = DYN_RANDOM + dyn['resched'] = True else: terms = "" ord = DYN_RANDOM diff --git a/designer/customstudy.ui b/designer/customstudy.ui index 45a683c2d..bc677d0e5 100644 --- a/designer/customstudy.ui +++ b/designer/customstudy.ui @@ -124,7 +124,12 @@ - All cards in random order (cram mode) + All review cards in random order + + + + + All cards in random order (don't reschedule)