PROBLEM: The main window has a statistic that says “Studied X cards in Y minutes today.” This counts repeated cards in the total. In other words, if you learnt 50 distinct cards today, but repeated them each twice, Anki tells you you studied 100 cards today. This overestimates how many distinct pieces of knowledge you reviewed.
SOLUTION: This addon modifies the message so that only distinct cards are counted. In other words, if you learnt 50 cards, but repeated them each twice, Anki will show “Studied 50 distinct cards in Y minutes today.” Even though repeats are ignored for card count, the total minutes spent studying is still displayed accurately. Also, it will only make this change on the main window—not the statistic window.
NOTE: If you want to use this together with the add-on More Decks Stats and Time Left, open the latter’s add-on folder (Tools>Add-ons>View files) and replace the text in the file called “mds_time_left” with the text found in this link: https://www.codepile.net/pile/mPOVqaoq
CREDIT: Made by Joseph Yasmeh. Tested on Anki 2.0 and 2.1 on Mac.
Liên kết hỗ trợ
Reviews (30)
👍 2025-08-19
Helpful
👍 2025-06-24
so good
👍 2024-03-27
only wish I could keep the non-distinct card numbers too. Great besides that!
👍 2023-05-04
This add-on helps me get a better sense of the time
👍 2023-04-28
Works great, however, I personally didn’t like that it REPLACES the original text. Seeing both distinct and total cards on the main screen would have been ideal.
Also, instead of looking at the cid, I think a simpler implementation of this addon could be to use the deck browser with the rated:1 query. It gives the same number
👍 2023-03-01
I’m on 2.1.58 and the add-on doesn’t display the statistics. On the main screen it says “distinct cards”, but shows not distinct cards number; and on the stats screen, there are simply no changes.
👍 2023-02-13
Does exactly what it says (I do not use it together with the add-on More Decks Stats and Time Left). Thank you for making this!
👍 2022-09-16
I’d love if you could update this so that it can work with HUMBLE PIE- I haven’t been able to get your instructions to produce the desired effect.
👍 2022-03-21
Very useful add-on, but could have a button or a shortcut to switch between the distinct cards studied and all cards studied in the main screen without having to disable the add-on.
👍 2022-02-25
good. it helps to know how many unique cards you did.
👍 2021-10-31
I love this add on! Just what I been looking for.
Just like some other people I have a problem with implementing “More deck stats and tiime left” and would really like to get it to work.
👍 2021-08-28
totally speechless. thank you for your contribution. it’s super helpful in my studies!
👍 2021-06-29
This add-on should be the default info showed on Anki and I really want it to work with More Decks Stats and Time Left, but didn’t have luck with changing the code of mds_time_left.py, using the Author custom files or changing the versions like I’ve read in another comment :(
👍 2021-03-09
Great add-on! Just what I was looking for.
I tried to merge it with the more deck stats and time left add-on, but when I enable both distinct cards and the more deck stats add-on, your add-on overrides and I can’t see the info from more deck stats. I replaced the code in the mds_time_left file like it says in the instructions. Could it be due to the version of add-on/anki im using?
I would like to get my anki to look like https://i.imgur.com/vA2UyxB.png Comment from author Sorry the instru
👍 2021-02-19
I merged this with the “More Decks Stats and Time Left” add-on but, since it’s almost entirely a copy-paste job without permission from authors of either add-ons, I don’t think I’m allowed to share it. I have no idea where to go from here but for anyone trying to do the same thing: at least know that it can be done by someone with zero initial programming knowledge, a lot of trial-and-error and guesswork.
Here’s what got mine to look like: https://i.imgur.com/vA2UyxB.png Comment from author A
👍 2020-11-08
Such a useful tweak that should honestly be built in by default. However, it doesn’t work with More Deck Stats and Time Left on Anki 2.1.32. This also removes the average time spent per card which I found useful. I saw that the author uses an older version of More Deck Stats, but I don’t think those are available to 2.1 users/ available to download. Could this be updated to be compatible with More Deck Stats? Or at least updated to have the average time per card displayed as well? Comment from a
👍 2020-05-25
This patch (NOT RENDERED CORRECTLY HERE, PICK LINES MANUALLY, ADJUSTING THE INDENTATION! Only blank lines don’t matter in Python.) adds an option to prepend the text to the original text instead of replacing it. Also stops the warnings about ”_” and fmtTimeSpan.
I don’t know what I am doing, but it seems to work with both Anki 2.1 and 2.0. Sorry about the extra blank line. Feel free to add to the add-on. Note, however, that the license should either be the “GNU General Public License” <https:
👍 2020-03-26
Deleted new (0s / card) information.
there is a (.) “dot” at the end which does not exist in the original. Comment from author Good points.
Yes, it removes the “(Xs /card)” text. I use the add-on “More Deck Stats and Time Left” so that text wasn’t useful to me personally when making this.
👍 2020-03-26
Thank you for making this add on!!!!!
I put in a discussion to the add-on forum to see if an issue is on my end or the add on, I’d love to hear your response.
UPDATE: This works now with the new update for me thank you!!!! Comment from author before post was edited Thanks for reporting the issue with newer versions of Anki. I plan to update my addons in June. Anyone interested in this discussion can check here:
https://anki.tenderapp.com/discussions/add-ons/42840-humble-pie-distinct-car
👍 2020-03-25
Is not compatible with More Deck Stats and Time Left or More Overview Stats 21.
👍 2020-03-25
Like the idea but is not compatible with More Deck Stats and Time Left or More Overview Stats 21. Would definitely use it otherwise. Comment from author I wonder if it’s because you’re using a newer version of the add-on “More Deck Stats and Time Left.” I use an older version and it works fine with it.
For that add-on, here’s the version of the code I’m using for the file called mds_time_left.py: https://www.codepile.net/pile/mPOVqaoq
👍 2020-03-24
add-on erases new information from version 2.1.22
👍 2020-03-24
If you’re on Anki 2.1.22/23 and the add-on doesn’t seem to be working, check the add-on dialog/window. If it says this addon requires version 2.1.21, it’s because the author set the max supported Anki version to 2.1.21. To fix this, just delete the following snippet in meta.json:
“max_point_version”: -21
This will remove the max Anki version restriction. After making this change, the add-on seems to be working fine for me on version 2.1.23.
**Of note: for some reason, this does remove
👍 2020-03-11
Great idea and implementation!
👍 2020-03-02
Thanks for bringing this illusion to our attention
👍 2020-03-01
Very useful for a quick overview of your actual progress.
Update
Broken as of Anki 2.1.21 beta 2
Update
Replace the contents of init.py with the following
#This Anki 2.0 addon modifies the main window “Studied X cards today” message.
#Originally, Anki counts repeated cards in this statistic.
#This addon changes it so only distinct cards are counted.
#Made by Joseph Yasmeh for Anki 2.0 and 2.1 on Mac. July 12 2019.
#GNU license 3
#Code rationale:
#Each card has a unique ID assi
👍 2020-01-05
Great but instead of showing your stat instead of the defaults, I think it would be better to show both !
Like : “Studied X cards and Y notes today” Comment from author The other reviewer agrees with you and shared the code for that below. Personally, I like to see a lower number so I’m motivated to work harder.
👍 2019-11-14
Studied x cards (y distinct) in z minutes today
def _renderStats2(self):
cards, thetime = self.mw.col.db.first("""
select count(), sum(time)/1000 from revlog
where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
dcards, thetime = self.mw.col.db.first("""
select count(distinct cid), sum(time)/1000 from revlog
where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
cards = cards or 0
dcards = dcards or 0
thetime = thetime or 0
ms
👍 2019-09-20
This is an add-on I didn’t know I needed, but make great use out of! Thanks!! :)
👍 2019-07-16
Great idea. Helps me to step forward through forest of new cards and make actual progress. (while suspending time-spending-badly-made-cards)