Anki/pylib/anki
RumovZ e39fb74e82
Enable state-dependent custom scheduling data (#2049)
* Enable state-dependent custom scheduling data

* Next(Card)States -> SchedulingStates

The fact that `current` was included in `next` always bothered me,
and custom data is part of the card state, so that was a bit confusing
too.

* Store custom_data in SchedulingState

* Make custom_data optional when answering

Avoids having to send it 4 extra times to the frontend, and avoids the
legacy answerCard() API clobbering the stored data.

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2022-09-05 16:48:01 +10:00
..
_backend
_vendor
foreign_data
importing Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
scheduler Enable state-dependent custom scheduling data (#2049) 2022-09-05 16:48:01 +10:00
syncserver
__init__.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
_legacy.py
backend_pb2.pyi
browser.py
BUILD.bazel
buildinfo.py
card_rendering_pb2.pyi
cards.py Add card meta for persisting custom scheduling state (#2040) 2022-09-02 11:22:49 +10:00
cards_pb2.pyi
collection.py
collection_pb2.pyi
config.py
config_pb2.pyi
consts.py
db.py
dbproxy.py
deckconfig_pb2.pyi
decks.py Add non-legacy backend interface for adding new decks 2022-09-04 14:12:29 +10:00
decks_pb2.pyi fix generated code symlinks again 2022-01-24 16:59:37 +10:00
errors.py Make all Anki-native exceptions inherit from the same base class (#2028) 2022-08-24 16:07:44 +10:00
exporting.py Narrow typehints within pylib (#2003) 2022-08-05 14:48:07 +10:00
find.py
generic_pb2.pyi
hooks.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
hooks_gen.py fix generated code symlinks again 2022-01-24 16:59:37 +10:00
httpclient.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
i18n_pb2.pyi
import_export_pb2.pyi
lang.py
latex.py Make dvipng use transparent background by default (#2036) 2022-08-31 18:49:22 +10:00
links_pb2.pyi
media.py
media_pb2.pyi
models.py
notes.py
notes_pb2.pyi
notetypes_pb2.pyi
py.typed
rsbackend.py
scheduler_pb2.pyi
search_pb2.pyi
sound.py
stats.py
stats_pb2.pyi
statsbg.py
stdmodels.py
storage.py
sync.py
sync_pb2.pyi
tags.py
tags_pb2.pyi
template.py
types.py
utils.py
wheel_description.txt