Commit graph

340 commits

Author SHA1 Message Date
Damien Elmes
28b5a108f6 wildcard deck searches 2012-05-21 11:45:24 +09:00
Damien Elmes
a8513a679a fix some unittest issues thanks to kostas 2012-05-21 08:47:00 +09:00
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
32fde2a072 encode daily steps in left
When a user has learning steps that extend past the daily cutoff, we end up
counting them all instead of only the ones that would be done today. In order
to avoid this without expensive calculations or db schema changes, we
calculate the number of steps until the daily cutoff and pack it into the left
column, as totalLeft + leftToday*1000.
2012-05-20 16:05:50 +09:00
Damien Elmes
d877fad653 remove obsolete test 2012-05-17 10:13:30 +09:00
Damien Elmes
cdfaa664ed fix intermittent sync test fails 2012-05-16 05:04:15 +09:00
Damien Elmes
e10e4aed1d fix due check, remove obsolote unit test 2012-05-14 06:55:32 +09:00
Damien Elmes
dd45746a41 fix unit test 2012-05-06 19:40:35 +09:00
Damien Elmes
aedf88ee6d don't allow {{c0:: 2012-05-06 18:08:15 +09:00
Damien Elmes
e3a848b5b8 tally lrn separately so we don't limit it with the rev limit 2012-05-06 02:20:25 +09:00
Damien Elmes
0e2637a999 when cram deck removed, cards in learning need to be reset 2012-05-06 01:55:18 +09:00
Damien Elmes
7c95b00253 fix unit test 2012-05-05 01:29:54 +09:00
Damien Elmes
5b97c3f20f don't throw error when update causes empty cards; fix unit test 2012-04-24 10:03:34 +09:00
Damien Elmes
b2bc97ee49 clear overdue lapsed cards from learning queue 2012-04-24 05:28:19 +09:00
Damien Elmes
014dc3d987 fix unit test 2012-04-21 06:56:30 +09:00
Damien Elmes
7c51a7bb16 update sort field when field moved 2012-04-21 06:40:20 +09:00
Damien Elmes
74bd61139a fix unit test 2012-04-19 11:42:56 +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
55812bef86 remove cards from cram decks and the relearning queue on suspend 2012-04-17 22:53:48 +09:00
Damien Elmes
3ab91c600b fix unit tests 2012-04-17 22:23:44 +09:00
Damien Elmes
cbeccc4d8a fix sched unit test 2012-04-15 10:51:34 +09:00
Damien Elmes
4f8053b165 make sure to export deck creation date on apkg export 2012-04-12 00:34:40 +09:00
Damien Elmes
1077c71c2e don't throw error in half-complete field filter 2012-04-08 21:39:04 +09:00
Damien Elmes
ad661add7c ignore sound: tags when rendering furigana 2012-04-08 09:27:50 +09:00
Damien Elmes
6e8f2f5993 when creating child decks, inherit case from parents 2012-04-08 08:45:36 +09:00
Damien Elmes
bbac32b477 ensure lapsed reviews are scheduled for tomorrow on graduate 2012-04-07 14:28:41 +09:00
Damien Elmes
2f75e99671 ntype -> note 2012-04-07 13:53:55 +09:00
Damien Elmes
7d8c0d96b5 fix unit tests 2012-04-06 12:50:46 +09:00
Damien Elmes
aa559431b6 on upgrade all cards of a note should share the same due # 2012-04-06 12:45:01 +09:00
Damien Elmes
b413b1562a when updating, preserve unmapped fields 2012-03-25 02:07:20 +09:00
Damien Elmes
51b70a5787 genCards() on model change 2012-03-20 02:46:45 +09:00
Damien Elmes
dc85212bfe remove review order options
As cram decks provide a more efficient way of ordering reviews, we can limit
normal reviews to just due order.
2012-03-13 19:25:28 +09:00
Damien Elmes
60dd0b426c store order as an index 2012-03-13 18:12:06 +09:00
Damien Elmes
cabf25bacc add upgrade unit test 2012-03-12 12:42:26 +09:00
Damien Elmes
f4e962aa58 make sure we move reviews back to original deck 2012-03-12 12:33:46 +09:00
Damien Elmes
ea64e4da1b don't need to removeFailed() when suspending 2012-03-12 12:16:37 +09:00
Damien Elmes
8030b2c969 use type not queue for rev sib. spacing, fix cram case 2012-03-11 14:52:12 +09:00
Damien Elmes
4a12ec62c1 log cram reps separately; fix std rev reps 2012-03-11 14:06:59 +09:00
Damien Elmes
da07e15a87 generalize into 'dynamic decks'
- search and limits are embedded in the deck
- decks can be refreshed
- they have the option to treat due reviews normally rather than cram them
- some options are inherited from the original deck, others taken from the
  dynamic deck
2012-03-10 19:41:37 +09:00
Damien Elmes
f6b2e69669 remove did from notes, use model did instead 2012-03-09 09:12:27 +09:00
Damien Elmes
ffaf7ffc66 removing cram decks, estimates, failure handling 2012-03-09 06:56:07 +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
972526d265 update supermemo importer; fix factor 2012-03-07 06:58:06 +09:00
Damien Elmes
beef571d95 include _, remove some old unittest support files 2012-03-07 06:10:18 +09:00
Damien Elmes
869d665c22 gui integration for mnemosyne 2012-03-07 05:54:57 +09:00
Damien Elmes
1d29c7bcc0 foreign card importing; mnemosyne 2.0 importer 2012-03-07 05:45:52 +09:00
Damien Elmes
66534db987 make the cloze hint a prefix 2012-03-07 03:27:04 +09:00
Damien Elmes
a99101d95c initMapping(); csv tweaks 2012-02-29 13:33:55 +09:00
Damien Elmes
099ba71bb0 fix updating 2012-02-29 12:49:42 +09:00