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
This commit is contained in:
Damien Elmes 2018-07-11 20:35:08 +10:00
parent 13c54e02d8
commit c60e22fd60
2 changed files with 12 additions and 2 deletions

View file

@ -16,7 +16,8 @@ RADIO_CRAM = 6
TYPE_NEW = 0 TYPE_NEW = 0
TYPE_DUE = 1 TYPE_DUE = 1
TYPE_ALL = 2 TYPE_REVIEW = 2
TYPE_ALL = 3
class CustomStudy(QDialog): class CustomStudy(QDialog):
def __init__(self, mw): def __init__(self, mw):
@ -151,6 +152,10 @@ class CustomStudy(QDialog):
terms = "is:due " terms = "is:due "
ord = DYN_DUE ord = DYN_DUE
dyn['resched'] = True dyn['resched'] = True
elif type == TYPE_REVIEW:
terms = "-is:new "
ord = DYN_RANDOM
dyn['resched'] = True
else: else:
terms = "" terms = ""
ord = DYN_RANDOM ord = DYN_RANDOM

View file

@ -124,7 +124,12 @@
</item> </item>
<item> <item>
<property name="text"> <property name="text">
<string>All cards in random order (cram mode)</string> <string>All review cards in random order</string>
</property>
</item>
<item>
<property name="text">
<string>All cards in random order (don't reschedule)</string>
</property> </property>
</item> </item>
</widget> </widget>