carlos1172 / ProgressBarTimeLeft

Hello, this is my first "add-on" (which isn't really by me since I just tweaked/merged Glutanimate's Progress Bar add-on with Carlos Duarte's More Decks Stats and Time Left add-on.). I basically got the progress bar to work on 2.1.49, as well as added statistics for cards left, percentage left, time (s) spent per card based on today's reviews, and time left based on how fast you've done today's reviews. Note: it says studied 637 cards in 1.36 hours today (7.67 s/card) but that's not reflected in the progress bar because I did those reviews on iPad. Also, the progress bar only tracts reviews in your current anki session. If you restart the app, it'll reset to 0 cards done (but the total cards left will be less already). I have not tested this on any other version besides 2.1.49, but I just wanted to share it since it took me a while to get this working and I'm very proud of it (and am hugely thankful to Glutanimate and Mr. Duarte). Installation: Unzip them and paste them in C:\%APPDATA%\Anki2\addons21
14 stars 8 forks source link

Update Broke It :( #11

Closed seraphlin closed 2 years ago

seraphlin commented 2 years ago

Hi, I updated this add-on and it stopped working! Anki gives an error and the progress bar is now black and blank. If there is no current fix for it, could we please get the previous version for now? That one worked very well!

seraphlin commented 2 years ago

The error I get:

Traceback (most recent call last): File "aqt.main", line 574, in loadCollection File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "/Users/seraphlin/Library/Application Support/Anki2/addons21/1097423555/reviewer_progress_bar.py", line 853, in afterStateChangeCallBack updatePB() File "/Users/seraphlin/Library/Application Support/Anki2/addons21/1097423555/reviewer_progress_bar.py", line 347, in updatePB xTR = 1-float(passed/(float(passed+flunked))) ZeroDivisionError: float division by zero

carlos1172 commented 2 years ago

Okay will work on this when I have time. On Jul 20, 2022, 2:15 AM +0800, seraphlin @.***>, wrote:

The error I get: Traceback (most recent call last): File "aqt.main", line 574, in loadCollection File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "/Users/seraphlin/Library/Application Support/Anki2/addons21/1097423555/reviewer_progress_bar.py", line 853, in afterStateChangeCallBack updatePB() File "/Users/seraphlin/Library/Application Support/Anki2/addons21/1097423555/reviewer_progress_bar.py", line 347, in updatePB xTR = 1-float(passed/(float(passed+flunked))) ZeroDivisionError: float division by zero — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

carlos1172 commented 2 years ago

Done. Please see if it is fixed.

seraphlin commented 2 years ago

Yeah!! It works now! Thank you so much! This is a wonderful add-on :D

carlos1172 commented 2 years ago

You’re welcome. Feel free to leave feedback at https://ankiweb.net/shared/info/1097423555

:) On Jul 20, 2022, 11:56 AM +0800, seraphlin @.***>, wrote:

Yeah!! It works now! Thank you so much! This is a wonderful add-on :D — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>