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

No working #10

Closed smleca closed 2 years ago

smleca commented 2 years ago

image

carlos1172 commented 2 years ago

Reinstall the addon On Jul 12, 2022, 11:06 PM +0800, smleca @.***>, wrote:

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sandroboris commented 2 years ago

Hello. I tried to reinstall. But, the error is still there Capture d’écran 2022-07-13 022314 .

sandroboris commented 2 years ago

It worked. I reinstalled it from the zip file. No more error. My english is very bad. Sorry.

425833137 commented 2 years ago

after I update anki to 2.1.54(qt6),this addons does not work. plz fix this bug, I really love this addons❤

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-07-19 16:36:37

Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 197, in on_window_init File "aqt.main", line 243, in setupProfileAfterWebviewsLoaded File "aqt.main", line 288, in setupProfile File "aqt.main", line 294, in showProfileManager File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "C:\Users\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 849, in afterStateChangeCallBack currDID = mw.col.decks.current()['id'] AttributeError: 'NoneType' object has no attribute 'decks'

carlos1172 commented 2 years ago

The addon currently doesn't work with multiple Anki profiles. Hold shift when turning on Anki, delete all other profiles aside from your main profile, and it should work. On Jul 19, 2022, 5:04 PM +0800, 425833137 @.***>, wrote:

after I update anki to 2.1.54(qt6),this addons does not work. plz fix this bug, I really love this addons❤ 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-07-19 16:36:37 Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 197, in on_window_init File "aqt.main", line 243, in setupProfileAfterWebviewsLoaded File "aqt.main", line 288, in setupProfile File "aqt.main", line 294, in showProfileManager File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "C:\Users\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 849, in afterStateChangeCallBack currDID = mw.col.decks.current()['id'] AttributeError: 'NoneType' object has no attribute 'decks' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

425833137 commented 2 years ago

The addon currently doesn't work with multiple Anki profiles. Hold shift when turning on Anki, delete all other profiles aside from your main profile, and it should work. On Jul 19, 2022, 5:04 PM +0800, 425833137 @.>, wrote: after I update anki to 2.1.54(qt6),this addons does not work. plz fix this bug, I really love this addons❤ 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-07-19 16:36:37 Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 197, in on_window_init File "aqt.main", line 243, in setupProfileAfterWebviewsLoaded File "aqt.main", line 288, in setupProfile File "aqt.main", line 294, in showProfileManager File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "C:\Users\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 849, in afterStateChangeCallBack currDID = mw.col.decks.current()['id'] AttributeError: 'NoneType' object has no attribute 'decks' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

I can use this addons in anki 2.1.49 with multiple Anki profiles, but in 2.1.54 it has this bug

carlos1172 commented 2 years ago

Yes I'm aware, but that's the only fix at the moment On Jul 19, 2022, 9:38 PM +0800, 425833137 @.***>, wrote:

The addon currently doesn't work with multiple Anki profiles. Hold shift when turning on Anki, delete all other profiles aside from your main profile, and it should work. … On Jul 19, 2022, 5:04 PM +0800, 425833137 @.>, wrote: after I update anki to 2.1.54(qt6),this addons does not work. plz fix this bug, I really love this addons❤ 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-07-19 16:36:37 Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 197, in on_window_init File "aqt.main", line 243, in setupProfileAfterWebviewsLoaded File "aqt.main", line 288, in setupProfile File "aqt.main", line 294, in showProfileManager File "aqt.main", line 676, in moveToState File "aqt.hooks_gen", line 3797, in call File "anki.hooks", line 34, in runHook File "C:\Users\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 849, in afterStateChangeCallBack currDID = mw.col.decks.current()['id'] AttributeError: 'NoneType' object has no attribute 'decks' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> I can use this addons in anki 2.1.49 with multiple Anki profiles, but in 2.1.54 it has this bug — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

carlos1172 commented 2 years ago

Same as issue #6