I made a quick & dirty change to the above add-on (using pp(card())
described in Debugging - Writing Anki Add-ons):
In card_deck_properties.py
, add to the “# Card Stats as seen in Browser” section:
if card.desired_retention:
p["c_DesiredRetention_str"] = str( round(card.desired_retention, 4) )
else:
p["c_DesiredRetention_str"] = ''
if card.memory_state:
p["c_MemoryState_str"] = str("D: {}%, S: {}".format(int(round(card.memory_state.difficulty * 10, 0)), round(card.memory_state.stability, 1)))
else:
p["c_MemoryState_str"] = ''
In cardstats.py
, add to either or all of the sections (depending on which modes you use)
rows_mini_stats = [
def mini_card_stats_with_ord(card, p, show_od):
def card_stats_as_in_browser(card, p):
the following:
("Memory State", p.c_MemoryState_str),
("Desired Retention", p.c_DesiredRetention_str),
It shows:
Memory State D: 100%, S: 2.6
Desired Retention 0.83
Retrievability is not there.