Commit graph

680 commits

Author SHA1 Message Date
Damien Elmes
f576d19426 improve handling of invalid deck trees
- move checking code out of the schedulers and into the deck manager
- ensure we can fix the problem in one loop - the previous recursive
approach could lead to stack overflows if the top level of a large
deck tree was missing. this was also the cause of the sqlite
'interrupted' error that some users were seeing
2018-11-09 15:04:35 +10:00
Damien Elmes
321559c8db Revert "increase db timeout"
This reverts commit 7a2dc6066c.

did not seem to help
2018-10-28 14:17:43 +10:00
Damien Elmes
9d20de871b run latex commands without bundled libs
https://anki.tenderapp.com/discussions/ankidesktop/30531-latex-wont-generate-svgs-automatically-but-will-generate-pngs
2018-10-28 11:41:43 +10:00
Damien Elmes
b3d168664f bump version 2018-10-25 14:52:49 +10:00
Damien Elmes
416c64c493 prevent infinite loop with invalid template 2018-10-20 19:37:01 +10:00
Damien Elmes
38189f53d0 fix bug in tag deletion
https://anki.tenderapp.com/discussions/ankidesktop/30146-removing-single-letter-tags-also-removes-any-other-tags-with-the-letter
2018-10-07 18:21:51 +10:00
Damien Elmes
0735a42cfa bump version 2018-10-01 15:43:47 +10:00
Damien Elmes
f861faaf83 bump version 2018-09-28 18:49:38 +10:00
giqtaqisi
d10511627c add support for Lojban 2018-09-26 16:15:07 +00:00
Damien Elmes
9be9d7c576 strictly enforce maxIvl
https://anki.tenderapp.com/discussions/ankidesktop/29904-bug-in-v2-scheduler-that-allows-exceeding-the-maximum-review-interval
2018-09-25 09:55:46 +10:00
Damien Elmes
0cfca6d70b beta version 2018-09-24 19:17:35 +10:00
Damien Elmes
04ef57551e fix translation path for packaged builds on Linux 2018-09-24 18:23:57 +10:00
Damien Elmes
7a2dc6066c increase db timeout
possible workaround for 'database is locked' when switching
from WAL mode

https://anki.tenderapp.com/discussions/ankidesktop/29751-90dec2fdce28bb9f0bb7571f41edaff258e953d3
2018-09-24 17:25:23 +10:00
Damien Elmes
18af2db5aa use custom mpv config folder
not the first time the default location has caused problems for users
https://anki.tenderapp.com/discussions/ankidesktop/29531-bug-ankis-version-of-mpv-loads-mpvconf-from-configmpv-on-macos
2018-09-24 16:26:08 +10:00
Damien Elmes
e7d8cef8b5 recover from decks with blank sections (eg '::deck') 2018-09-22 16:04:26 +10:00
Damien Elmes
df72b02dda when rebuilding field cache make sure we don't discard filenames
stripHTMLMedia() already used in notes.py
2018-09-20 15:28:28 +10:00
Damien Elmes
2c24401d6b support timeout customization 2018-09-19 23:47:54 +10:00
Damien Elmes
7d5b78ef95 add missing headers in get calls 2018-09-19 23:45:52 +10:00
Damien Elmes
a6eb0185dd fix exporting of v2 colpkg in non-English language
https://anki.tenderapp.com/discussions/ankidesktop/29661-error-exporting-decks
2018-09-14 19:35:52 +10:00
Damien Elmes
10068e1009 fix stripping of html in conditional replacement 2018-09-13 14:38:18 +10:00
Damien Elmes
5ea4ac0c70 bump version 2018-09-05 20:23:39 +10:00
Damien Elmes
b1cd168447 days since creation needs to be calculated relative to rollover
https://anki.tenderapp.com/discussions/ankidesktop/29502-next-day-starts-experimental-v2-scheduler-bug
2018-09-05 20:21:30 +10:00
Damien Elmes
86bf9e53a0 prevent new users from downloading accidentally 2018-09-05 19:53:41 +10:00
Damien Elmes
beccd2abdf bump version 2018-08-30 14:34:05 +10:00
Damien Elmes
46d27136ce catch suspended new cards w/ wrong due number
https://anki.tenderapp.com/discussions/ankidesktop/29267-01
2018-08-30 12:43:53 +10:00
Damien Elmes
a1f576e339 bump version 2018-08-20 14:38:51 +10:00
Damien Elmes
48617b67a4 bump version 2018-08-09 16:29:43 +10:00
Damien Elmes
c4cd97f956 bump version 2018-08-08 23:48:29 +10:00
Damien Elmes
a27b65aad5 bump version 2018-08-08 12:47:19 +10:00
Damien Elmes
47c28295c0 bump version to 2.1.0 2018-08-06 14:17:13 +10:00
Damien Elmes
f61f9857b7 bump version 2018-07-28 18:50:55 +10:00
Damien Elmes
1d97d284e9 support dynamic sync url 2018-07-28 18:08:16 +10:00
Damien Elmes
c7620478cf v2: limit learn delay fuzz to 5 minutes and sub-day 2018-07-28 13:56:56 +10:00
Damien Elmes
066adfd933 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
3c1aa8242f chunk deletions to reduce load on AnkiWeb 2018-07-26 21:34:53 +10:00
Damien Elmes
ee5eedeb3b strip out unused syncing code 2018-07-26 19:41:52 +10:00
Damien Elmes
e0f24b626f better handle invalid deck list
deleting will fail if the problem deck is the default deck - better to
rename instead

fixes infinite recursion errors
2018-07-26 11:34:10 +10:00
Damien Elmes
9a0a3a2674 bump version 2018-07-23 13:59:02 +10:00
Damien Elmes
991aa7d402 fixes for mpv focus switching
- avoid changing focus if an Anki window is already focused
- only try to restore focus when playing videos
2018-07-23 13:57:09 +10:00
Damien Elmes
d78a6eb3fb fix invalid cards when moving from v2->v1 sched
type needs to be reset from 3->2 when relearning cards removed from
learning

https://anki.tenderapp.com/discussions/beta-testing/1210-scheduling-error
2018-07-16 16:29:53 +10:00
Damien Elmes
134a788f9f bump version 2018-07-11 22:40:05 +10:00
Damien Elmes
2fdd9c89d5 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
f656a2da09 support customizing hard factor 2018-07-11 21:23:22 +10:00
Damien Elmes
4dbf51ef9a don't pull learning cards into v1 filtered deck
preventing emptying is harder - operations like suspending
don't expect remFromDyn() to fail
2018-07-11 20:28:14 +10:00
Damien Elmes
1e63ed2965 remove study card count cap in v2 sched
- cap kept for the deck list, as we need to calculate it for multiple
decks
- v2 sched can calculate review limit faster, as it doesn't have to
check each deck separately
- filtered deck cap is same as in interface
- as this will be deployed on ankiweb, beta clients will need to update
or risk getting sanity check errors when syncing with high due counts
2018-07-11 20:03:36 +10:00
Damien Elmes
7bc6b2beb0 Merge pull request #240 from maiself/avoid-reordering-when-importing
Avoid reordering entire deck when importing notes
2018-07-11 15:24:13 +10:00
Mai Lavelle
8832bfb7ee avoid reordering entire deck when importing notes
No need to reorder existing cards, which may have been manually
ordered by the user, when importing notes if we can give cards
a proper due number from the start. Retrieving any sibling's
due number for this is easy as all relevant cards will have
already been queried for when generating the new cards.
2018-07-06 00:49:47 -04:00
Damien Elmes
9f7464fac2 fix media check with [$]{{c1::a}}{{c2::b}}[/$]
https://anki.tenderapp.com/discussions/ankidesktop/28625-cloze-deletion-in-latex-check-medias-regression-in-21

appears to have broken in 61cc3cec86
2018-06-28 13:11:04 +10:00
Damien Elmes
2949d4ceec bump version 2018-06-25 20:27:45 +10:00
Damien Elmes
51f50e7b4c make sure we don't put suspended leeches back in the learning queue
fixes
https://anki.tenderapp.com/discussions/beta-testing/1119-anki-210-beta-38#comment_45555453
2018-06-25 20:27:26 +10:00