Commit graph

245 commits

Author SHA1 Message Date
ospalh
2e52ce2df1 Fix closing quote to match opening quote. 2012-10-12 17:03:52 +02:00
Damien Elmes
c127f4b3c8 reverse order added in dyn deck 2012-09-13 08:05:50 +09:00
Damien Elmes
fa1d309885 don't update odue if we're not in a filtered deck 2012-09-09 06:09:16 +09:00
Damien Elmes
958768ccfe deck list shouldn't apply rev limit to 1+ day learning cards 2012-09-09 02:49:00 +09:00
Damien Elmes
59cb45eda6 need to update odue when failing rev card in filtered deck 2012-09-06 04:34:44 +09:00
Damien Elmes
7c1ff307ed fix spurious and 2012-08-30 10:02:49 +09:00
Damien Elmes
20c0ae2e33 count per-day learning cards in deck list 2012-08-29 13:19:57 +09:00
Damien Elmes
1be0f919f4 make sure we honor the minimum interval on lapses 2012-08-26 15:09:28 +09:00
Damien Elmes
162ccdcc03 bury shouldn't touch suspended siblings 2012-08-23 19:44:25 +09:00
Damien Elmes
bcb9b53368 ensure we return cards in created order when sorting 2012-08-23 17:07:41 +09:00
Damien Elmes
6c1239ee9c reset rep/lapse count on export 2012-08-23 16:57:08 +09:00
Damien Elmes
500dff04c8 must preserve selected card order when repositioning 2012-08-23 15:09:10 +09:00
Damien Elmes
875342e141 space buttons by at least a day
when a card has a low interval like 1, you can end up with next times of
2,2,3, which some users think is a bug. change the code to yield 2,3,4
instead.
2012-07-28 12:47:25 +09:00
Damien Elmes
153c971db6 report intervals below collapse time like "<10m" 2012-07-26 13:42:51 +09:00
Damien Elmes
52ae784a65 don't throw error when learning card answered with no steps 2012-07-04 22:58:49 +09:00
Damien Elmes
f9c438b2bf reset factor when cards reset to new 2012-07-04 17:19:28 +09:00
Damien Elmes
7130f2c1fe correctly handle relearn steps of 1+ days 2012-06-20 08:57:49 +09:00
Damien Elmes
3069729776 disable automatic failed card removal
It has caused two issues in the last few days:

- A user thought their failed cards were mysteriously disappearing
- A few users with 1 day+ re-learning steps had thought they hit a bug. What happens is they fail a card on day 1 and its review interval is set to day 2; then a few days later after a few steps, they fail it again and it enters queue 1, but when the queue is rebuilt the steps are discarded because the original review repetition is due.

It might be possible to fix the above, but for 2.0 it seems like the safest bet is to remove this feature, especially as nobody actually asked for it and I just thought it might be handy.
2012-06-03 20:23:11 +09:00
Damien Elmes
2e233fb86f set reps on fetch so fetch ahead shuffles properly 2012-05-29 11:08:04 +09:00
Damien Elmes
315838a56b fix answer buttons on review card 2012-05-27 13:14:58 +09:00
Damien Elmes
fa5fca5941 don't touch due cards either 2012-05-24 18:02:32 +09:00
Damien Elmes
ec1a4f7458 even if failed 2012-05-24 17:51:49 +09:00
Damien Elmes
e3bb4a817e and undue cards have untouched ivl 2012-05-24 17:35:27 +09:00
Damien Elmes
455796f189 when rescheduling off, graduating cards get reset to new 2012-05-24 17:12:12 +09:00
Damien Elmes
1d92961e97 maxIvl, ivlFct
- limit ivl on rev and cram scheduling, default to 100 years
- ivlfct -> ivlFct for consistency
2012-05-24 13:49:15 +09:00
Damien Elmes
d6bce7c873 start on filter/cram updates, deck:filtered
- cram decks no longer pull cards from other cram decks, as tests like is:due
  don't make sense on crammed decks
- cram decks now default to not overriding the original deck's steps
- remove obsolote dyn_failed sort order - have to fix this in upgrade
- search/limit/order properties have been merged into a list, in case we may
  want to support multiple queries in the future (eg 10 cards from tag A, 20
  cards from tag B)
- added a resched option to disable boosting/failure - not yet implemented
- added an unused flag to allow cards to persist in the cram deck after
  graduation. implementing this will take some work and won't come in 2.0
- instead of is:filtereddeck, use deck:filtered
2012-05-24 13:38:58 +09:00
Damien Elmes
44b4f18e6c cram decks don't pull from other cram decks anymore 2012-05-24 08:31:58 +09:00
Damien Elmes
6af7f6e846 improved finding
- new per-character tokenizer that is easier to read and maintain
- OR searches now supported
- grouping with ( and ) now supported
- sorting is off by default now
- searching in html is disabled for now, but may come back later
- use ? arguments instead of named arguments to ease porting to other
  platforms
- field:foo is no longer wrapped in implicit wildcards
- avoid joining notes table if it not required - about 30% faster
- fixed sql injection bug in findNids()
- commands no longer have to take care of negation themselves
- commands can return nothing to immediately flag the query as invalid
2012-05-23 20:21:47 +09:00
Damien Elmes
3ffb6fd67b add separate toggle to disable scheduling completely in cram deck 2012-05-23 13:36:44 +09:00
Damien Elmes
779ba63b01 remove fmult in favour of home deck's setting 2012-05-23 13:22:57 +09:00
Damien Elmes
56652c5066 remove unused cramRev 2012-05-23 13:16:15 +09:00
Damien Elmes
ab5af8c7aa log lapse time as relearn delay if available 2012-05-22 11:17:10 +09:00
Damien Elmes
20c96d50d6 fix countIdx() for lrn day cards 2012-05-22 09:37:36 +09:00
Damien Elmes
8a8ce2bffb fix ivlfct reference in cram decks 2012-05-22 06:32:07 +09:00
Damien Elmes
d9348e72dd replace fi adjustment with factor 2012-05-20 21:35:56 +09:00
Damien Elmes
745bbe1382 update children too 2012-05-20 20:55:14 +09:00
Damien Elmes
f00b7201b4 add fn to extend today's limits (into the negatives allowed) 2012-05-20 20:44:21 +09:00
Damien Elmes
faa3c7134b find and cards with invalid dids on deck list 2012-05-20 19:37:43 +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
33407a6043 if the next step of the learn card is past the day cutoff, ignore left 2012-05-20 12:01:52 +09:00
Damien Elmes
072e93590b don't bump mod time when expired failed cards 2012-05-14 05:44:48 +09:00
Damien Elmes
32bb469c63 proactively remove empty dids 2012-05-13 08:32:48 +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
c2370fe3ef fix bug where nondue review cards in cram were treated as due 2012-05-06 01:44:10 +09:00
Damien Elmes
623dff8df0 allow for more cards in a cram deck 2012-05-05 23:52:47 +09:00
Damien Elmes
47e8e3d718 must set odue to zero when removing failed 2012-05-05 01:28:47 +09:00
Damien Elmes
d359a600d9 adjust properties directly on leech 2012-05-05 01:20:18 +09:00
Damien Elmes
461e240d53 allow python-bundled json 2012-04-28 17:41:56 +09:00