Skip to content

Support persistent state in custom scheduler code #2039

@dae

Description

@dae

Allowing custom code to save/restore metadata about a card would allow people to experiment with schedulers further removed from the standard SM2 algorithm. We could do this by packing an object with arbitrary keys into card.data["meta"], and exposing a symbol like meta that the JS code could read from/write to.

https://forums.ankiweb.net/t/some-problems-in-implementing-a-state-of-the-art-srs-scheduler-on-anki/22705

@RumovZ feel free to tackle this if it interests you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions