glutanimate / review-heatmap

Anki add-on to help you keep track of your review activity
https://ankiweb.net/shared/info/1771074083
Other
1.2k stars 90 forks source link

Longest streak changed from 950s to 464 and I dont know why or when in the past few days.. :( #112

Open LegendRuffy opened 3 years ago

LegendRuffy commented 3 years ago

First of all, thank you very much for this addon! I have been using it for over 900 days and I was very proud of my longest streak. Somehow it changed to 464 days I just noticed but I dont know why or when this happened...:( I dont have the newest version because I am too afraid of trying and losing even my 464 streak..:(

I should mention that I used the MIGAKU addon but since I updated Anki to 2.1.42 I can't use it anymore. Maybe it has something to do with my retired cards? This is the addon: https://ankiweb.net/shared/info/278530045

image

This is my debug info:

Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-03-22 21:44:49

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
ImageResizer ['1214357311', 2020-12-18T15:01, 'None', '']
Migaku Dictionary ['1655992655', 2021-02-15T23:10, 'None', mod]
Migaku Editor ['1051095155', 2021-01-14T01:44, 'None', mod]
Migaku Japanese ['278530045', 2021-01-14T01:40, 'None', mod]
Migaku Retirement ['1666520655', 2021-01-14T01:37, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']

===IDs of active AnkiWeb add-ons===
1051095155 1214357311 1655992655 1666520655 278530045

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Multiple Choice for Anki ['1566095810', 2021-03-18T18:50, 'None', '']
glutanimate commented 3 years ago

Hi LegendRuffy,

Thanks for the report. Two quick questions:

  1. I assume that you upgraded to 2.1.42 recently. Could you please try downgrading to 2.1.40 and seeing if that changes the streak calculation back to what it was?
  2. Was there a daylight saving time change recently in your part of the world?
LegendRuffy commented 3 years ago

Hi glutanimate, I just restored a backup from 2 days ago and it worked, my longest streak is back. image

It shows 0 days at current streak... I could never have forgotten it, I'm studying for an exam atm Can I just start from here again or will the heatmap lose 1-2 days?

  1. Yes, I can do so.
  2. No, there will be one in 5 days (28th of March, Germany)
glutanimate commented 3 years ago

Hmm, that's a tough one. Really wonder how that happened with the streak loss previously. I guess it could be the card retiring feature with Migaku, but I never really looked into that / tried the add-on out. Did you use that add-on over the last couple of days?

Regarding the lost activity: Since you restored an older backup, any reviews that you did over the last couple of days will not be in your review log, so the heatmap doesn't know about them. Unfortunately I can't think of an easy way to restore that activity. One hacky way to at least maintain your streak might be to try and set your system time back to yesterday and then do one random review of a throwaway card that you create for that purpose.

But please make sure to create a copy of back-up you just restored in a different location on your hard drive before you proceed (so that you always have a back-up to come back to - Anki will progressively delete old backups as you restart it).

LegendRuffy commented 3 years ago

It didnt work. image

### Debug Info for version 2.1.40

Anki 2.1.40 (cf446733) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-03-23 21:50:56

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
ImageResizer ['1214357311', 2020-12-18T15:01, 'None', '']
Migaku Dictionary ['1655992655', 2021-02-15T23:10, 'None', mod]
Migaku Editor ['1051095155', 2021-01-14T01:44, 'None', mod]
Migaku Japanese ['278530045', 2021-01-14T01:40, 'None', mod]
Migaku Retirement ['1666520655', 2021-01-14T01:37, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']

===IDs of active AnkiWeb add-ons===
1051095155 1214357311 1655992655 1666520655 278530045

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Multiple Choice for Anki ['1566095810', 2021-03-18T18:50, 'None', '']
LegendRuffy commented 3 years ago

Hmm, that's a tough one. Really wonder how that happened with the streak loss previously. I guess it could be the card retiring feature with Migaku, but I never really looked into that / tried the add-on out. Did you use that add-on over the last couple of days?

Regarding the lost activity: Since you restored an older backup, any reviews that you did over the last couple of days will not be in your review log, so the heatmap doesn't know about them. Unfortunately I can't think of an easy way to restore that activity. One hacky way to at least maintain your streak might be to try and set your system time back to yesterday and then do one random review of a throwaway card that you create for that purpose.

But please make sure to create a copy of back-up you just restored in a different location on your hard drive before you proceed (so that you always have a back-up to come back to - Anki will progressively delete old backups as you restart it).

No, I didnt use thie addon for a week because it is not compatible with anki 2.1.42 :/

Thank your for this idea!!!

glutanimate commented 3 years ago

Thanks for checking on 2.1.40! In that case I'm not sure what could be causing the difference. I would have to take a closer look at your collection / review log to know for sure. Would that be ok with you? If so, I would appreciate it if you could send a full export of your current collection (with the 464 streak), and the older backup of your collection (with the original streak) to ankiglutanimate [at] gmail.com (replace [at] with @).

This will contain all of your cards and activity within Anki, so please only do so if you feel comfortable sharing that with me. If you can narrow the issue down to a particular deck, then an .apkg export of that deck with the scheduling included would also be more than enough.

Also, just as a forewarning, but unfortunately I'm dealing with a lot of add-on breakages on Anki 2.1.41+ at the moment, so it might take me a while to look into this.

LegendRuffy commented 3 years ago

Thanks for checking on 2.1.40! In that case I'm not sure what could be causing the difference. I would have to take a closer look at your collection / review log to know for sure. Would that be ok with you? If so, I would appreciate it if you could send a full export of your current collection (with the 464 streak), and the older backup of your collection (with the original streak) to ankiglutanimate [at] gmail.com (replace [at] with @).

This will contain all of your cards and activity within Anki, so please only do so if you feel comfortable sharing that with me. If you can narrow the issue down to a particular deck, then an .apkg export of that deck with the scheduling included would also be more than enough.

Also, just as a forewarning, but unfortunately I'm dealing with a lot of add-on breakages on Anki 2.1.41+ at the moment, so it might take me a while to look into this.

I just exported both files and will send them via email. Thank you for looking into this and your hard work!

LegendRuffy commented 3 years ago

get your system time back to yesterday and then do one random review of a throwaway card that you create for that purpose.

Comment: I changed my system time back and everything worked just fine. As you can see I did 1 review to maintain the streak. Unfortunately, as soon as the new day started (now 00:05 o clock), my review map changed back to 464 days as longest streak :( Hope this information helps.

image

Debug info:

Anki 2.1.42 (8eebfe18) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-03-23 21:50:56

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
ImageResizer ['1214357311', 2020-12-18T15:01, 'None', '']
Migaku Dictionary ['1655992655', 2021-02-15T23:10, 'None', mod]
Migaku Editor ['1051095155', 2021-01-14T01:44, 'None', mod]
Migaku Japanese ['278530045', 2021-01-14T01:40, 'None', mod]
Migaku Retirement ['1666520655', 2021-01-14T01:37, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']

===IDs of active AnkiWeb add-ons===
1051095155 1214357311 1655992655 1666520655 278530045

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Multiple Choice for Anki ['1566095810', 2021-03-18T18:50, 'None', '']
AhmedElbaz3 commented 3 years ago

I had the same problem with the heatmap streak when i updated to anki 2.1.24. I tried to downgrade to 2.1.20 but it didn't work, I noticed that my next day start at: was changed to 4 am instead of 5 am which I originally had it set to (go to tools --> preferences--> scheduling) . I returned it back to 5 am and now the streak is back and everything is working normally now, so check if it has changed for you , if so change it back to what you had before the update hope it helps,

rcomesan commented 2 years ago

I had a very similar problem, all of a sudden the streak was gone and the heatmap showed many missing days. I looked into the backups to see what went wrong and it turns out I had changed the "Next day starts at" value in the Anki preferences and I didn't remember.

Initially, I had it set at 4 AM but recently changed it to 0 AM. As you can see, the heatmap gets rendered with the current preferences of the profile. Using the new value, now I did miss some days as the reviews done during 11:59~03:59 AM are no longer counted for the current day. Instead, they are now accounted for the next one, as a new day starts at 0 AM now.

anki-bug

The solution was to change the value back to 4 AM. anki

I don't think the plugin remembers the historical value of this setting in order to determine whether or not a review fits within a day or another. It just takes the review times and the current value set in the preferences to make the calculations.

I believe this could be somewhat related to the problem mentioned here @AhmedElbaz3 @LegendRuffy @glutanimate