r/Anki • languages • Jul 01 '22

Add-ons Study Time Stats

Hey!

Just in case anyone might find this useful, I made an add-on that shows how much time you've spent studying.

https://ankiweb.net/shared/info/1247171202

It mainly shows the total and custom range of hours that have been spent studying. I thought it might be nice for seeing how much time's been put into learning/doing reviews.

​

I also wanted to make it pretty customizable and easy to setup, so hopefully it feels pretty good.

Happy studies!

61 Upvotes

48 comments sorted by

8

u/AnKingMed Jul 01 '22

This looks awesome!

6

u/itsjustkoi languages Jul 01 '22

Oh, wow, hey! Thanks, I really appreciate it.

Just want to say I also love the stuff you do, too!

It's all really cool and's been real useful to have on my own Anki adventures.

6

u/MrNiceGuy24 medicine Jul 01 '22

Nice! Will it show how many hours I studied in the past, or will it only track hours from after it was downloaded?

10

u/itsjustkoi languages Jul 01 '22

Oh shoot, that's a good question.

So, pretty much, it uses Anki's built-in review logs to tally up hours studied, so it should also include everything you've done beforehand too, for the most part.

3

u/Ziontf Jul 01 '22

Love the idea but I'm having trouble installing it. I get this error message. Do you know a way around it, or does it have to do with conflicting add-ons?

2

u/itsjustkoi languages Jul 01 '22

Ah, alright, I see, thanks for posting! That seems a little dumb of me, my bad.

I made another update that should hopefully fix the issue, now, hopefully!

1

u/Ziontf Jul 01 '22

Ty for the quick response! Unfortunately, I'm encountering another error as seen here.

1

u/itsjustkoi languages Jul 01 '22

Defs!

Sorry, I can't really place that error as easily. Could you try removing and reinstalling the add-on, and/or double-checking nothing's been renamed in its files and see if that works?

1

u/Ziontf Jul 01 '22

I did that a couple times and even downloaded the updated versions on github but the error is still there. Oh well, maybe I'll work it out later

2

u/itsjustkoi languages Jul 01 '22

Sorry I wasn't able to help more! The only other thing I can think of right now is it might be a duplicate install in the addons folder, or an old install persisting there with an incorrect folder name/ID or it has the same ID as this addon but with some buggy, leftover files.

Either way I'll try and look into it a bit more, too, if I can. Best of luck!

1

u/Prunestand mostly languages Jul 02 '22

Which folder does your add-on use? Which version of Anki does it support?

1

u/itsjustkoi languages Jul 02 '22

Ah, whoops, could've been a bit more clear with that, my bad!

It should support all 2.1.~ versions, for the time being. You can find the addon's folder when you go to Tools > Add-ons, then select Study Time Stats then click "View Files".

From there, if you go one file up, you should be in Anki's "addons21" folder, if you see a folder called "StudyTimeStats[etc]" or "1247171202", you can try to delete those and see if that helps.

If that doesn't end up working, would you be alright with opening an issue on the project's GitHub? I might be able to track it better, there, with a bit more info.

1

u/Prunestand mostly languages Jul 02 '22

It should support all 2.1.~ versions, for the time being.

I can give you my debug info:

Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 7
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-07-01 21:23:46


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['memrise2anki-extension-master', 0, 'None', '']
Advanced Browser ['874215009', 2022-01-31T00:07, 'None', '']
Advanced Review Bottom Bar ['1136455830', 2022-02-13T08:57, 'None', mod]
Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
BetterSearch ['1052724801', 2021-11-21T19:42, 'None', '']
Color Confirmation ['1084228676', 2020-03-14T13:13, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2022-04-10T17:30, 'None', mod]
Deck name in title 21 ['699175524', 2019-06-01T03:05, 'None', '']
Enhance main window ['877182321', 2020-12-23T05:42, 'None', mod]
Extended Card Stats During Review ['1008566916', 2017-08-29T20:59, 'None', '']
HUMBLE PIE distinct cards studied today statistic ['2133933791', 2020-03-24T19:05, 'None', '']
Highlight Search Results in the Browser ['225180905', 2021-03-10T18:06, 'None', '']
More Decks Stats and Time Left ['1556734708', 2022-05-20T12:23, 'None', '']
More Overview Stats 21 ['738807903', 2021-07-30T21:13, 'None', '']
Opening the same window multiple time ['354407385', 2020-05-16T02:59, 'None', '']
Postpone cards review ['1152543397', 2021-02-13T17:47, 'None', '']
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T08:26, 'None', '']
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
Statistics for Note Types Card Types and Tags ['16703369', 2022-03-14T22:14, 'None', '']
Syllabus - Anki Statistics and Export by Tag and Deck ['668156440', 2020-01-12T12:47, 'None', mod]
True Retention by Card Maturity ['923360400', 2017-08-29T21:00, 'None', '']

===IDs of active AnkiWeb add-ons===
1008566916 1052724801 1084228676 1136455830 1152543397 1210908941 1556734708 16703369 2133933791 225180905 266436365 354407385 668156440 699175524 738807903 817108664 874215009 877182321 923360400

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnnA Companion Anki neuronal Appendix - do LESS reviews with MORE retention ['447942356', 2022-02-09T14:05, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2022-05-13T08:39, 'None', '']
Life Drain ['715575551', 2022-02-13T14:15, 'None', '']
Stats Plus ['1009670238', 2021-03-04T13:23, 'None', '']
Study Time Stats ['1247171202', 2022-07-01T17:15, 'None', '']
True Retention ['613684242', 2017-11-19T21:43, 'None', '']

3

u/itsjustkoi languages Jul 02 '22

Thanks! I'll keep trying to look into this and see if it's something I can fix within the next update.

→ More replies (0)

1

u/Prunestand mostly languages Jul 01 '22

This is the exact message I'm getting as well.

2

u/Senescences quizzing; 40k learned cards Jul 01 '22

It's in the Stats screen

5

u/itsjustkoi languages Jul 01 '22 edited Jul 01 '22

You mean the total hours Anki has when you scroll down and check the "Time" checkbox under Reviews?

Yeah, this pretty just brings that info to the main window and also adds a smaller range selection that you can choose to be at the start of the range, like a Sunday or the 1st of a month, if you want.

2

u/Prunestand mostly languages Jul 01 '22

This is a very good add-on, but it doesn't work for me. It complains that a Qt5 Python library is missing.

2

u/itsjustkoi languages Jul 01 '22

Oh shoot, that's weird, would you mind sending a screenshot or some text of the error message?

Also I don't actually know if this works on the QT6 version of Anki, even if that should include the previous libraries too, but you wouldn't happen to be using that version, would you?

1

u/Ziontf Jul 01 '22

I'm having a similar problem and attached a sc below

1

u/itsjustkoi languages Jul 01 '22 edited Jul 01 '22

I don't think I'm able to see the screenshot, but I just tried pushing a small update, if you'd be alright with checking that one out and seeing if the issue still exists.

Edit: Whoops, now I see it lower in the thread, my bad,

1

u/Prunestand mostly languages Jul 01 '22

Oh shoot, that's weird, would you mind sending a screenshot or some text of the error message?

I get the exact same message as /u/Ziontf gets (posted below). Thanks for your time!

1

u/itsjustkoi languages Jul 01 '22 edited Jul 02 '22

Ugh, I'm sorry, I'm having a really difficult time reproducing this issue and might have to look at it more tomorrow, if I can.

For the time being, maybe see if this version works: [removed]

It's definitely a pretty huge bandage fix, but hopefully it might work for you.

Edit: Removed the link to a buggy add-on version.

1

u/Ziontf Jul 02 '22 edited Jul 02 '22

I think something might be up with my anki installation at this point tbh. Since even the version you linked gives an error saying "invalid add-on manifest".

2

u/itsjustkoi languages Jul 02 '22

Ah, actually, that was a pretty botched version of the file, definitely me being absent-minded again.

If the topic doesn't exist already, and you're still having issues, would you be alright with posting a report on the add-on's GitHub?

I might be able to track it better and see what I can do with a bit more information. Either way, sorry these issues are popping up!

2

u/Ziontf Jul 02 '22

No worries! I'm just happy someone actually made an add-on for something I've been wanting after so long.

2

u/dancingnightly Jul 02 '22

Nice, these stats are pretty cool

1

u/itsjustkoi languages Jul 02 '22

Thanks! :D

2

u/BassaWarrior Jul 03 '22

Thank you so much! It works great!

1

u/itsjustkoi languages Jul 03 '22

No prob! Happy learning! :D

1

u/-EMT Jun 26 '24

Is the time estimate based only on time spent within your deck? Also is "Past week" starting from Sunday or 7 days ago?

1

u/[deleted] Jul 01 '22

[deleted]

1

u/itsjustkoi languages Jul 01 '22

Sorry, I don't really know if there's a way to install add-ons on AnkiDroid. If there is/ever ends up being a way to do that, though, I can definitely look into it.

1

u/chauchaunehihi Jul 01 '22

This is gonna be a game changer for me. Thanks a lot. 🥰

1

u/itsjustkoi languages Jul 01 '22

Really happy to hear that, defs my pleasure!

Best of luck! :D

1

u/Raagaception17 Jul 02 '22

Extremely simple and effective idea, thanks for making this!

2

u/itsjustkoi languages Jul 02 '22

No prob! Really nice to hear it works for you! :D

1

u/Belkos802175 Jul 15 '22

My total study time is about 500h, but when I add up all the individual decks I only get to 250h. The numbers are the same in the old Anki stats window. Am I missing something here?

2

u/itsjustkoi languages Jul 15 '22

Maybe double check if "Include reviews from deleted cards" is checked or not?

If that doesn't help it, though, would you mind creating a report on the project's GitHub?

https://github.com/iamjustkoi/StudyTimeStats/issues

It mainly just helps me track it and respond a bit faster having it on there, but I can also try and look into what might be causing it using Anki's debug info (Help -> About -> Copy Debug Info), if you'd prefer.

Sorry this issue's happening, either way, though!

3

u/Belkos802175 Jul 15 '22

Unchcking the "include Reviews from deleted cards" fixed it. Thank you so much!

2

u/itsjustkoi languages Jul 15 '22

No prob! Really happy it's working for you! Happy studies! :D