Anki/pylib/anki
Damien Elmes 5f9792392a don't cap child counts to parents when reviewing in v2
https://forums.ankiweb.net/t/anki-2-1-41-beta/7305/59

When originally implemented in 21023ed3e5,
a given deck's limit was bound by its parents. This lead to a deck list
that seemed more logical in the parent limit < child limit case, as
child counts couldn't exceed a parent's, but it obscured the fact that
child decks could still be clicked on to show cards. And in the parent
limit > child limit case, the count shown for the child on the deck list
did not reflect how many cards were actually available and would be
delivered.

This change updates the reviewer to ignore parent limits when getting
review counts for the deck, which makes the behaviour consistent with
the deck list, which was recently changed to ignore parent limits.

Neither solution is ideal - this was a tradeoff v2 made in order to keep
fetching of review cards from multiple decks reasonably performant. The
experimental scheduling work moves back to respecting limits on
individual children, so this should hopefully improve in the future.

Also removed _revForDeck(), which was unused.
2021-03-02 10:23:06 +10:00
..
_backend minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
importing rework v2 scheduler upgrade; drop downgrade 2021-02-21 15:50:41 +10:00
syncserver update to latest mypy_protobuf 2021-02-03 13:31:52 +10:00
__init__.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
BUILD.bazel fix _backend files not getting format checked 2021-01-31 18:56:16 +10:00
buildinfo.py fix some warnings on startup 2020-12-16 15:38:24 +10:00
cards.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
collection.py fix reps updating in v2, but do it in answerCard instead of getCard 2021-03-01 21:48:02 +10:00
config.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
consts.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
db.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
dbproxy.py add some typehints, and remove some unused code 2021-01-31 20:56:21 +10:00
decks.py Catch DeckIsFilteredError directly on frontend 2021-02-26 11:32:40 +01:00
errors.py Add filtered deck error localisation on backend 2021-02-26 11:32:26 +01:00
exporting.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
find.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
hooks.py add more typing, and enable checks for missing types for most of pylib 2021-01-31 21:38:36 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
httpclient.py minor code cleanups with pyupgrade 2021-02-11 09:43:40 +10:00
lang.py fix rsbackend compat issues 2021-02-08 09:51:51 +10:00
latex.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
media.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
models.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
notes.py Allow for passing in custom note type and template 2021-02-12 02:12:03 +01:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
rsbackend.py fix rsbackend compat issues 2021-02-08 09:51:51 +10:00
sched.py don't cap child counts to parents when reviewing in v2 2021-03-02 10:23:06 +10:00
scheduler.py switch to 4 buttons when previewing in test scheduler 2021-03-01 23:47:00 +10:00
schedv2.py don't cap child counts to parents when reviewing in v2 2021-03-02 10:23:06 +10:00
sound.py support speed control in tts tags 2020-01-26 14:31:07 +10:00
stats.py use top level defs for protobuf enum cases 2021-02-05 19:26:13 +10:00
statsbg.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
stdmodels.py update to latest mypy_protobuf 2021-02-03 13:31:52 +10:00
storage.py storage->collection 2020-05-20 17:58:28 +10:00
sync.py start work on more clearly defining backend/protobuf boundaries 2021-01-31 18:55:45 +10:00
tags.py tweak search wording and tidy up API 2021-02-11 19:57:19 +10:00
template.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
types.py move remaining Filter button items into sidebar 2021-02-05 18:58:22 +10:00
utils.py convert some pylib strings to f-strings with flynt 2021-02-11 09:51:09 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00