review-heatmap icon indicating copy to clipboard operation
review-heatmap copied to clipboard

Heatmap counting a random date

Open PinkDucki opened this issue 2 years ago • 2 comments

Problem description

I started using Anki yesterday, and got started on my first deck. Just now started a new (second) deck. After learning 10 cards from this new deck I went back out to the menu where the heatmap is. For some reason it says that I have 1% days learned, and I can scroll back on the years, back to 2021 where I have a single day learned. I am very confused cause I literally only made my account and started using Anki yesterday. image image image

I'm not sure if this is an Anki issue, or a heatmap addon issue, but when I go into the statistics window, no data from before I started shows up and I can't even go back to the 2021 page, so it leads me to believe its probably a heatmap issue? image image

Checklist

  • [x] I've restarted Anki to see if it helps
  • [x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [x] I've tried to disable other add-ons to see if there are any interactions present
  • [x] My issue disappears when I hold shift while starting Anki. *
  • [x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README. *The heatmap doesn't exist when starting anki while holding shift, so its impossible for the issue to be there

Information about your Anki set-up

    
    Anki 2.1.55 (01caec2a) Python 3.9.15 Qt 6.4.0 PyQt 6.4.0
    Platform: Windows-10-10.0.19044
    Flags: frz=True ao=True sv=2
    Add-ons, last update check: 2023-01-08 10:06:36
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Button Colours Good Again ['2494384865', 2022-09-27T20:18, 'None', '']
    Custom Background Image and Gear Icon ['1210908941', 2023-01-04T04:34, 'None', mod]
    Japanese Support ['3918629684', 2022-03-14T13:32, 'None', '']
    Review Heatmap ['1771074083', 2022-06-30T11:43, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1210908941 1771074083 2494384865 3918629684
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    

PinkDucki avatar Jan 08 '23 00:01 PinkDucki

Dropping by to say I'm experiencing the very same issue. I created my account and started using Anki in October of 2022, but the "Days learned" stat is skewed low because of a random day in 2021 when supposedly 17 cards were reviewed:

キャプチャ

I will add that the "Ignore Data Before" fine tuning option does nothing to affect it.

Azzla avatar Jan 19 '23 04:01 Azzla

UPDATE: As it turns out, this is an issue when you use a deck shared by someone who accidentally included scheduling information on some cards, not an issue with Review Heatmap. @PinkDucki I was able to fix this easily with the following:

  1. Backup all your decks / the whole collection.

  2. Press Ctrl+Shift+; (the control key, shift key, and semi-colon key at the same time) On a Mac, press Command+Shift+; to open up the debug console.

  3. Paste the following code into it and replace that long number with the timestamp you require. I found out the required timestamp from here.

mw.col.db.execute("delete from revlog where id < 1460683240826")
mw.col.mod_schema(False)
  1. Press Ctrl + Return to run it.

  2. Click Tools -> Check Database and finally upload your collection to ankiweb at the next sync.

Credit to u/glenzac for the steps.

Azzla avatar Jan 19 '23 22:01 Azzla