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 88 forks source link

Heatmap counting a random date #179

Open PinkDucki opened 1 year ago

PinkDucki commented 1 year ago

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

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])
Azzla commented 1 year ago

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 commented 1 year ago

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.