Damien Elmes
f7dfe98030
add temporary benchmark for updateReqs
2019-12-24 10:23:21 +10:00
Damien Elmes
7d8969a711
Merge pull request #374 from agentydragon/mathjax-test
...
Fix bug in _removeFormattingFromMathjax
2019-12-23 07:43:16 +10:00
Michal Pokorný (Rai)
2d2f21bfe3
Fix bug in _removeFormattingFromMathjax
2019-12-22 05:47:45 +01:00
Michal Pokorný (Rai)
331781cf45
Document newly found bug in _removeFormattingFromMathjax
...
Also adds some comments I wrote to help me understand what's going
on in the code.
I hope to fix this bug myself, but I think it might be beyond what
you can do with Python regexes and might require writing a proper
parser.
So, as step 1, I'm adding in a couple comments explaining that the
bug exists and how to reproduce it.
2019-12-22 05:22:18 +01:00
Damien Elmes
a5f2a73a85
Merge pull request #365 from Arthur-Milchior/updateReqsFalseInTest
...
add some updateReqs=False in tests
2019-12-21 07:42:49 +10:00
Arthur Milchior
e835403b8c
add some updateReqs=False in tests
2019-12-20 13:25:30 -08:00
Damien Elmes
85c3ca1c39
disable unit test broken by revert
2019-12-20 10:16:17 +10:00
Damien Elmes
e59af745f7
Merge pull request #361 from Arthur-Milchior/testReqs
...
test req
2019-12-16 20:44:23 +10:00
Arthur Milchior
e96ca691d0
test req
2019-12-15 22:58:12 -08:00
Damien Elmes
bb62a3c1af
fix unit tests
2019-12-09 13:00:15 +10:00
Damien Elmes
3b5f8fec4c
default to v2 scheduler on new installs, remove warning
2019-12-06 18:37:39 +10:00
Arthur Milchior
984d39fd6b
correction
2019-11-27 08:10:37 +01:00
Arthur Milchior
556ef5d34b
newField checks its input is a str
...
Indeed, it takes as input a name (str). For some reason in some test
it was given a model. This actually led to some strange failed test.
2019-11-25 00:15:20 +01:00
Damien Elmes
ea9e564b66
Merge pull request #352 from Arthur-Milchior/correctCaseInRename
...
Ensure that even childless deck's name is considered independtly of the case
2019-11-14 09:25:34 +10:00
Arthur Milchior
f1c3f124e2
Ensure flag:12 raises an alert
2019-11-13 17:41:48 +01:00
Arthur Milchior
9a40f29bce
test that if two decks differs only by case, they are renamed
2019-11-13 17:08:40 +01:00
Arthur Milchior
769d52d6b2
Test: Renaming with different cases
2019-11-13 17:08:40 +01:00
Arthur Milchior
3d6c0ec36c
Test: rename over filtered deck
2019-11-13 16:32:45 +01:00
Damien Elmes
d46899943c
fix negative due dates in filtered decks
...
https://anki.tenderapp.com/discussions/ankidesktop/35978-rebuilding-filtered-deck-on-experimental-v2-empties-deck-and-reschedules-to-the-year-1745
this means affected cards will not have the selected ordering applied,
but that seems preferable to the alternatives
2019-09-24 15:38:33 +10:00
Damien Elmes
9369e99b2a
and test to catch v2 relearning reset bug
...
https://anki.tenderapp.com/discussions/ankidesktop/34560-schedule-switching-bug
2019-06-14 09:15:38 +10:00
Damien Elmes
bf4b287d15
add unit test for v2 lrn scheduling bug
...
https://anki.tenderapp.com/discussions/ankimobile/9714-deleting-custom-study-deck-skips-learning-step-time
2019-05-31 15:02:58 +10:00
Erez Volk
2f75d1758d
Use jsonschema for add-on manifests
2019-04-24 23:42:49 +03:00
Damien Elmes
b168ce6eed
add option to strip html in export
2019-03-05 08:57:53 +10:00
Damien Elmes
98adddde6f
fix importing unit test
...
dupes no longer incremented for updated notes
2018-11-18 15:27:37 +10:00
Damien Elmes
65f6ddf8d9
v2: limit learn delay fuzz to 5 minutes and sub-day
2018-07-28 13:56:56 +10:00
Damien Elmes
a728595c1d
use scheduled ivl in lapse calculation
...
reverting to 2.0 behaviour
https://anki.tenderapp.com/discussions/effective-learning/1300-lapse-duration-not-being-honored-for-lapses-of-multi-stepday-relearn-cards
2018-07-27 15:02:41 +10:00
Damien Elmes
d6874de8c8
strip out unused syncing code
2018-07-26 19:41:52 +10:00
Damien Elmes
9e8648bed7
differentiate easy button more when reviewing early
...
apply half the easy bonus post ivl calculation, or else very early
reviews with longer intervals appear to have the same intervals as
answering 'good'
2018-07-11 22:18:46 +10:00
Damien Elmes
1a617e6d60
support customizing hard factor
2018-07-11 21:23:22 +10:00
Damien Elmes
b5e33aafac
face fix cond in sync test
2018-06-25 20:26:24 +10:00
Damien Elmes
01c58cfd85
ignore delay in hard case
...
https://anki.tenderapp.com/discussions/ankidesktop/27627-request-allow-setting-maximum-delay-for-interval-calculation-in-overdue-cards
2018-06-01 12:24:11 +10:00
Damien Elmes
0b42787ffc
fix no relearn steps case in v2 sched
2018-02-02 14:30:53 +10:00
Damien Elmes
8e0b009173
experiment with counting learning cards instead of learning steps
...
When studying, the learning count now indicates the number of
learning cards due within the learn ahead limit, instead of the total
number of learning steps required to complete that day.
Also fix the ineffective limit clauses in the learning counts.
2018-01-31 14:50:17 +10:00
Damien Elmes
651b107b18
make preview delay customizable
2018-01-20 15:26:11 +10:00
Damien Elmes
ea82126fcb
update tests
2018-01-14 16:58:12 +10:00
Damien Elmes
21023ed3e5
don't fetch reviews in deck order
...
- fetch reviews from all child decks at once, sorted by due order
- shuffle the gathered cards as we did previously
- review limits on child decks are ignored - only the current deck and
its parents control what the limit is
- to make the deck list consistent with actual counts, we can't sum the
child counts, as the sum in the parent limit>child limit case may not
reflect the actual number of cards that would be presented
2018-01-14 12:16:53 +10:00
Damien Elmes
4e52f43365
distinguish between buried siblings and manually buried cards
2018-01-14 12:16:53 +10:00
Damien Elmes
62c1fa4a17
preserve learning/filtered state when suspending/burying
...
add new card type of 3 so we can distinguish cards in relearning from
normal reviews
2018-01-14 12:16:53 +10:00
Damien Elmes
ba87fc7736
experiment with simple resched=off case to 'preview mode'
...
the previous approach meant we weren't able to preserve the card state
exactly when cards were in learning, since we didn't record the step
position prior to cards being moved into the filtered deck.
it also meant the answer buttons needed to change depending on state - 4
for cards in learning/review, but 2 when the card is on the final step
or is a review.
instead, in preview mode cards always have 2 buttons: again will repeat
again after a delay, and good immediately removes the card and restores
it to its previous state.
to accomplish this, we use a separate queue #, as the learn count
always needs to have a 1:1 correspondence to the number of cards
2018-01-14 12:16:53 +10:00
Damien Elmes
765ec0fb36
use the review queue for undue reviews
2018-01-14 12:16:53 +10:00
Damien Elmes
563e93b0ba
ensure due reviews+resched off works
2018-01-14 12:16:53 +10:00
Damien Elmes
68445d7243
add test for new position preservation
2018-01-14 12:16:53 +10:00
Damien Elmes
4070f4eef8
schedtest changes, squashed from local branch
2018-01-14 12:16:53 +10:00
Damien Elmes
7ac601f0af
fix 'unclosed file' warnings with python -Wall
2017-12-11 16:38:15 +10:00
Damien Elmes
c67fc3e769
fix time translation patch
2017-12-04 12:33:23 +10:00
Damien Elmes
d0929e5bab
run unit tests in parallel
2017-10-05 14:17:12 +10:00
Damien Elmes
8737c6737b
another fix for mathjax+cloze
2017-09-12 13:53:08 +10:00
Damien Elmes
67728e73d7
fix broken cloze deletion
2017-09-10 19:51:25 +10:00
Damien Elmes
c18bd47a6e
scan media each time
...
Experiment with ignoring dirMod and scanning the folder for changes on
each sync. Use scandir() for better performance. Please let me know if
this causes a noticeable slowdown for you.
2017-08-29 10:52:13 +10:00
Damien Elmes
08e0174f2e
remove dupeOnSchemaChange
...
no longer required now that anki 1.x importing dropped
2017-08-21 13:50:11 +10:00