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

error upon launch #19

Closed akavi1 closed 1 year ago

akavi1 commented 1 year ago

Downloaded the addon, restarted anki and got this error immediately upon launch

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1 Platform: Mac 13.0 Flags: frz=True ao=True sv=? Add-ons, last update check: 2023-02-26 17:59:04 Add-ons possibly involved: ⁨Progress Bar cards done cards left secondscard time spentleft and ETA⁩

Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 198, in on_window_init File "aqt.hooks_gen", line 2801, in call File "/Users/UserName/Library/Application Support/Anki2/addons21/1097423555/reviewer_progress_bar.py", line 167, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched'