Skip to content

Instantly share code, notes, and snippets.

@L-M-Sherlock
L-M-Sherlock / getCardRevlog.py
Created October 3, 2022 13:17
get Anki's entire review history of a card
from anki.collection import Collection
col = Collection("path/to/collection.anki2")
print(col.card_stats_data(card_id).revlog)
@L-M-Sherlock
L-M-Sherlock / getCardStateCustomizer.py
Created October 3, 2022 13:15
get Anki's custom scheduling code
from anki.collection import Collection
col = Collection("path/to/collection.anki2")
print(col.all_config()['cardStateCustomizer'])