Anki Forums

Card Status or CardStats

Code:

from aqt import gui_hooks, mw
from aqt.utils import showInfo

def testing(reviewer, card, ease):
txt = mw.col.cardStats(mw.reviewer.card)
showInfo(“your ease is: %s” % txt)

gui_hooks.reviewer_did_answer_card.append(testing)

Hi!

Im still a new developer when it comes to understanding the Anki Source Code, one of the Add ons that I would want to implement is to create a summary panel (a score like system based on the number of Cards that were rated as Good, Again and etc based on their corresponding Note). Was wondering if there was an easier way where I can can get these data individually?

1 Like