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

"left" is always zero #14

Open 425833137 opened 2 years ago

425833137 commented 2 years ago

like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 Snipaste_2022-07-29_14-34-07

and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions:

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-28 14:05:39

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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched'

carlos1172 commented 2 years ago

Please try Anki 2.1.54

Regards, Carlos Resurreccion On Jul 29, 2022, 2:41 PM +0800, 425833137 @.***>, wrote:

like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

425833137 commented 2 years ago

Please try Anki 2.1.54 Regards, Carlos Resurreccion On Jul 29, 2022, 2:41 PM +0800, 425833137 @.>, wrote: like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

I have try anki 2.1.54 qt5 & qt6,all have the same bug

carlos1172 commented 2 years ago

Can you try doing some cards or opening a deck? Does it go away?

Regards, Carlos Resurreccion On Jul 29, 2022, 3:23 PM +0800, 425833137 @.***>, wrote:

Please try Anki 2.1.54 Regards, Carlos Resurreccion … On Jul 29, 2022, 2:41 PM +0800, 425833137 @.>, wrote: like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> I have try anki 2.1.54 qt5 & qt6,all have the same bug — 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

Can you try doing some cards or opening a deck? Does it go away? Regards, Carlos Resurreccion On Jul 29, 2022, 3:23 PM +0800, 425833137 @.>, wrote: > Please try Anki 2.1.54 Regards, Carlos Resurreccion > … > On Jul 29, 2022, 2:41 PM +0800, 425833137 @.>, wrote: like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> I have try anki 2.1.54 qt5 & qt6,all have the same bug — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

still zero,whatever I have done🤦🏻‍♀️

carlos1172 commented 2 years ago

I'm sorry I wasn't much help :(

On Fri, Jul 29, 2022 at 4:54 PM 425833137 @.***> wrote:

Can you try doing some cards or opening a deck? Does it go away? Regards, Carlos Resurreccion … <#m-5286369232322882929> On Jul 29, 2022, 3:23 PM +0800, 425833137 @.>, wrote: > Please try Anki 2.1.54 Regards, Carlos Resurreccion > … > On Jul 29, 2022, 2:41 PM +0800, 425833137 @.>, wrote: like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> I have try anki 2.1.54 qt5 & qt6,all have the same bug — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

still zero,whatever I have done🤦🏻‍♀️

— Reply to this email directly, view it on GitHub https://github.com/carlos1172/ProgressBarTimeLeft/issues/14#issuecomment-1199037196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFH6UKTPBHHE567V3JFURTVWOL4XANCNFSM547VPT2A . You are receiving this because you commented.Message ID: @.***>

-- Regards, Carlos Resurreccion

425833137 commented 2 years ago

I'm sorry I wasn't much help :( On Fri, Jul 29, 2022 at 4:54 PM 425833137 @.> wrote: Can you try doing some cards or opening a deck? Does it go away? Regards, Carlos Resurreccion … <#m-5286369232322882929> On Jul 29, 2022, 3:23 PM +0800, 425833137 @.>, wrote: > Please try Anki 2.1.54 Regards, Carlos Resurreccion > … > On Jul 29, 2022, 2:41 PM +0800, 425833137 @.>, wrote: like this pic,my English is poor so I think pic is better🤪 the "left" always is zero my anki version is 2.1.54qt6 and when I open anki,it show me this bug information. I do not know whether there are some relation between these two questions: 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-28 14:05:39 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\42583\AppData\Roaming\Anki2\addons21\1097423555\reviewer_progress_bar.py", line 169, in add_info x = (mw.col.sched.day_cutoff - 86400 no_days) 1000 AttributeError: 'NoneType' object has no attribute 'sched' — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> I have try anki 2.1.54 qt5 & qt6,all have the same bug — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> still zero,whatever I have done🤦🏻‍♀️ — Reply to this email directly, view it on GitHub <#14 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFH6UKTPBHHE567V3JFURTVWOL4XANCNFSM547VPT2A . You are receiving this because you commented.Message ID: @.> -- Regards, Carlos Resurreccion

when I use anki 2.1.49,this addons did not have this bug. But after I update to 2.1.54qt6, it has this problem. I do not know whether this information can help you😂

khonkhortisan commented 2 years ago

When you click on a deck, does it skip straight into a study session and show you a flash card? Directly review, without going through overview page My progress bar says 0 left when I start Anki, but updates when I click on a deck and see the deck overview.

carlos1172 commented 2 years ago

No. I don't use that addon. Yes it says 0 left at the start, but updates when you press D at the main screen, or enter any deck and leave.

On Wed, Aug 17, 2022 at 1:09 PM Kyle Mills @.***> wrote:

When you click on a deck, does it skip straight into a study session and show you a flash card? Directly review, without going through overview page https://ankiweb.net/shared/info/1024346707 My progress bar says 0 left when I start Anki, but updates when I click on a deck and see the deck overview.

— Reply to this email directly, view it on GitHub https://github.com/carlos1172/ProgressBarTimeLeft/issues/14#issuecomment-1217467917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMFH6ULT3I563H5QIQRP4STVZRXZBANCNFSM547VPT2A . You are receiving this because you commented.Message ID: @.***>

-- Regards, Carlos Resurreccion