mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
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:
parent
13c54e02d8
commit
c60e22fd60
2 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -124,7 +124,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<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>
|
||||
</item>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue