Commit graph

53 commits

Author SHA1 Message Date
Damien Elmes
b6bdd4aa21 daily learning queue
The way we were handling 1 day+ learning intervals was not great - they'd show
up at the start of a new day before normal reviews, meaning the hardest cards
came first. In previous Anki versions we deliberately sorted the queue in the
opposite order to prevent that. When relearning the cards the next day, if you
failed a card and expected to see it in 10 minutes that wouldn't happen
either, as all the overdue cards took precedence.

To fix this, we put cards that are due tomorrow or later into a separate queue
(queue 3), and pull cards from that queue only after the reviews are done. In
the future it might also be nice to move overdue learning cards into that
queue automatically at the start of a session.
2012-05-20 16:56:14 +09:00
Damien Elmes
6096d39748 revert to default did if invalid in _newCard() 2012-05-14 03:02:19 +09:00
Damien Elmes
6f90e2c445 don't generate cards into invalid decks 2012-05-06 02:00:33 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00
Damien Elmes
5f7c80a2cd add c<n> for conditional generation of specific clozes 2012-04-25 11:11:21 +09:00
Damien Elmes
b3ff6044c8 add replayBoth to conf 2012-04-24 16:33:02 +09:00
Damien Elmes
07ce818f18 add to current deck option 2012-04-23 04:16:36 +09:00
Damien Elmes
3c6707c17f don't genCards() into a cram deck 2012-04-22 08:27:31 +09:00
Damien Elmes
f16335ee7f use a smaller range for random numbers
Using 2**32 is the technically superior solution, since it minimizes the chance of multiple notes sharing a due # (which has implicates for sibiling spacing), but the large numbers are confusing to users.
2012-04-21 08:56:56 +09:00
Damien Elmes
b4cf7e39b5 i18n empty cards msg 2012-04-21 07:25:41 +09:00
Damien Elmes
a3407020cb split empty card removal into separate report 2012-04-19 11:14:57 +09:00
Damien Elmes
5cbe93b63d more cloze work
- upgrade old decks
- specify the field in the cloze, so the user can have an id in the first
  field
2012-04-19 08:32:19 +09:00
Damien Elmes
41fa9a9896 cloze refactor wip 2012-04-19 07:14:03 +09:00
Damien Elmes
609e165c95 use deck of existing cards if all use same deck 2012-04-18 05:24:02 +09:00
Damien Elmes
44d62d6a41 fix remEmptyCards filter arg order 2012-04-18 01:59:38 +09:00
Damien Elmes
d429519929 return check db status 2012-04-17 20:16:41 +09:00
Damien Elmes
29cb76de8f add check for broken review due #s 2012-04-12 17:30:14 +09:00
Damien Elmes
dd9d9f4223 update position on integrity check 2012-04-11 18:10:49 +09:00
Damien Elmes
8a6e9945b2 use human-readable # when generating new cards 2012-04-11 18:09:13 +09:00
Damien Elmes
245be4c166 obsolete col attrs 2012-03-28 06:40:15 +09:00
Damien Elmes
62117453ff timeboxing 2012-03-16 19:56:10 +09:00
Damien Elmes
ef386d8698 anki.cram no longer exists 2012-03-14 00:26:10 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +09:00
Damien Elmes
01404fafaa start of cram refactor 2012-03-08 16:47:22 +09:00
Damien Elmes
a2312f9a1f change cards table schema
In preparation for cramming:

- add odid for storing old deck on a per-card basis
- rename edue to odue
- at the moment note.did still exists, but in the future we may ignore it and
  use model.did instead
2012-03-08 11:28:12 +09:00
Damien Elmes
056dd4d68e remove some dead code thanks to richard 2012-02-24 20:40:17 +09:00
Damien Elmes
f6f6649062 return the restored card when undoing a review 2012-02-13 12:51:15 +09:00
Damien Elmes
58935afba7 when undoing, update daily limits 2012-01-24 23:38:58 +09:00
Damien Elmes
7b53facc4c add integrity check back to fixIntegrity 2011-12-18 12:32:44 +09:00
Damien Elmes
819bc326e0 make sure we set usn correctly on card gen; work even if no existing cards 2011-12-14 10:22:09 +09:00
Damien Elmes
bacbea13e0 conf() -> confForDid(); add getConf() 2011-12-13 13:56:05 +09:00
Damien Elmes
5c5181f063 don't switch journal mode back on server 2011-12-13 12:15:03 +09:00
Damien Elmes
c1d9b62549 make sure we adjust due time on reviews when importing 2011-12-13 04:20:29 +09:00
Damien Elmes
1114fc084a rename special field templates 2011-12-12 01:39:57 +09:00
Damien Elmes
428b6a0520 don't prompt when no cards to remove; don't autodel on indiv. note edits 2011-12-12 00:02:43 +09:00
Damien Elmes
0b96e8a1a9 per-fact empty card deletion, and delete hook 2011-12-11 23:48:24 +09:00
Damien Elmes
8be0e6cccd make sure we add + delete cards after template changes 2011-12-11 23:35:59 +09:00
Damien Elmes
0a279f6a26 remove clozectx, add styling to stdmodels 2011-12-11 02:33:27 +09:00
Damien Elmes
918bfa2e62 move some prefs into collection 2011-12-10 23:48:36 +09:00
Damien Elmes
4428c04774 new order is now a deck property 2011-12-10 22:45:44 +09:00
Damien Elmes
451962d4a8 drop the special config for top level decks
New/rev card mixing, collapse time and the timeboxing limit are now a
collection property. I appreciate how it could be useful to have those
settings per top-level deck in some cases, but having some settings inherited
from the top level deck makes for a confusing UI.
2011-12-09 07:55:40 +09:00
Damien Elmes
8c9c3489e5 fetch reviews in subdecks incrementally like new cards
- allows separate review order for different decks
- makes new card and rev card handling consistent
- for users who find it confusing to have cards from different decks mixed in
  and thus click on each deck in turn, they can now just select the parent
  deck and have it work as expected
- for users who want their cards mixed together randomly, they can keep the
  cards in a single deck
2011-12-09 04:02:43 +09:00
Damien Elmes
81c4d24b0e make sure we bump usn when uploading, or next sync sends data back 2011-12-07 19:59:11 +09:00
Damien Elmes
c0edcae238 fix some sync bugs
- don't send server graves graves back on the next sync
- make sure we update usns of models/tags/decks as well on upload
- don't die when updating decks after current deck deleted
- report counts when sanity check fails
2011-12-06 01:35:54 +09:00
Damien Elmes
b33c2e99c0 return false, not 'continue', when not finished 2011-12-05 14:43:32 +09:00
Damien Elmes
cca3b5cba6 scm ts should be ms too, fix unit tests 2011-12-04 17:52:01 +09:00
Damien Elmes
9d5357f7a6 after a save, revert to unmodified state; sync tweaks 2011-12-04 14:56:12 +09:00
Damien Elmes
cdb33cf6a8 don't bump mod time unless the db has actually been changed 2011-12-04 13:51:13 +09:00
Damien Elmes
1db4b41e23 use WAL mode if available; don't delete media in check 2011-12-02 22:44:00 +09:00
Damien Elmes
88da227ce1 don't make optimize/check force a full sync anymore 2011-12-02 21:52:10 +09:00