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
mw.col.sched.dayCutoff - 86400 * no_days) * 1000 - AttributeError: 'NoneType' object has no attribute 'sched' #18
W10x64
Anki Version 2.1.54 (b6a7760c)
Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Having the following exception upon start:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2022-12-30 06:50:03
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 "C:\Users\Sony\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 167, in add_info
x = (mw.col.sched.dayCutoff - 86400 no_days) 1000
AttributeError: 'NoneType' object has no attribute 'sched'
W10x64 Anki Version 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Having the following exception upon start:
Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue to the add-on author. Debug info: Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1 Platform: Windows 10 Flags: frz=True ao=True sv=? Add-ons, last update check: 2022-12-30 06:50:03
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 "C:\Users\Sony\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 167, in add_info x = (mw.col.sched.dayCutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched'