ThoreBor / Anki_Leaderboard

Anki 2.1 Add-On
https://ankiweb.net/shared/info/41708974
MIT License
53 stars 11 forks source link

Streak not synced with heatmap #5

Closed kk1995 closed 4 years ago

kk1995 commented 4 years ago

For example, my streak on the leaderboard is 17 days, although I have 73 days streak according to heatmap add on.

ThoreBor commented 4 years ago

I'm aware of the problem and I'll try to fix it soon. The problem is most likely that the new day starts at midnight. Is it possible that you only reviewed cards after 0:00 am 18 days ago?

kk1995 commented 4 years ago

That's very possible. I did not study many cards 18 days ago. I'm not sure if there is a way to check that though.

Willz7 commented 4 years ago

That's very possible. I did not study many cards 18 days ago. I'm not sure if there is a way to check that though.

You can hover heatmaps 18 days ago like this Heatmap addon

kk1995 commented 4 years ago

That's very possible. I did not study many cards 18 days ago. I'm not sure if there is a way to check that though.

You can hover heatmaps 18 days ago like this Heatmap addon

yep but I'm not sure I can find exactly when I did those reviews. The hour when I did them.

JasjoL commented 4 years ago

If you click the day you'll see cards that you haven't reviewed again since that day. Click one of the cards then click "Cards" on toolbar at top then "info"

DoctorToBeIn23 commented 4 years ago

Similar issue I have a 300+ day streak but leaderboard says 1 day

kk1995 commented 4 years ago

If you click the day you'll see cards that you haven't reviewed again since that day. Click one of the cards then click "Cards" on toolbar at top then "info"

So I did what you said and here's the log for one of the cards I reviewed 18 days ago (on 3/15): image

To my surprise, I reviewed this card before midnight. So the problem with new day starting after midnight does not seem to apply here.

ThoreBor commented 4 years ago

Okay, thank you for the info.

ThoreBor commented 4 years ago

It would be great if someone with this issue could send me their complete database, so i can find out what the problem is.

DoctorToBeIn23 commented 4 years ago

https://drive.google.com/open?id=1TLkIaJ2y32QBUuETgvAwtzcr-VBf74KC

Lol4Funzies commented 4 years ago

Is it possible that the leaderboard is pulling data off of a universal 00:00 rather than it being based on one's relative timezone? I pulled up the leaderboard now at 21:55 US Eastern Time and the leaderboard has changed dramatically from when I was on it a few hours ago. My own stats are also gone from the leaderboards as if I haven't done any Anki today. I'm no programmer by any means but I figured I would share those thoughts and observations!

jdnguyenswin commented 4 years ago

Mine is an extreme case: leaderboard streak says "0", heatmap streak say 307. Did I do something wrong in setting up the account incorrectly?

ThoreBor commented 4 years ago

@Lol4Funzies That's probably another issue. Yes, for a couple hours the Review and Leaderboard only showed people that synced their data after 0:00 UTC. I changed it now to how it was before, but in the next update you'll only see people that synced their stats on the same day as you.

ThoreBor commented 4 years ago

@DoctorToBeIn23 I looked at your data. The problem here is definitely that reviews after midnight aren't counted. Apparently you only did reviews after midnight two days ago so that's why the leaderboard streak is only 2 days.

ThoreBor commented 4 years ago

I just updated the add-on. Please check if this fixed the issue for you @kk1995 @DoctorToBeIn23 @jdnguyenswin

kk1995 commented 4 years ago

My streak number is in sync now. Thank you for looking into this and fixing it!