DenverCoder1 / github-readme-streak-stats

🔥 Stay motivated and show off your contribution streak! 🌟 Display your total contributions, current streak, and longest streak on your GitHub profile README
https://streak-stats.demolab.com
MIT License
4.66k stars 720 forks source link

Streak Reset for no reason #83

Closed janaSunrise closed 3 years ago

janaSunrise commented 3 years ago

Describe the bug I'm contributing and coding everyday, but today it reset all of a sudden for no reason.

Expected behavior It was supposed to continue

Screenshots My contribution graph: Screenshot from 2021-04-20 20-37-47

My stats card: Screenshot from 2021-04-20 20-39-44

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

janaSunrise commented 3 years ago

Got it fixed by re-adding, Thank you, and sorry!!

DenverCoder1 commented 3 years ago

Hi @janaSunrise

It looks like this may have been caused by a commit that you have on October 16, 2021.

image

October 16 is the last item in the generated list so it is treated as the current date and it becomes the current streak.

I think it might make more sense to simply make Streak Stats ignore commits after the current date so the current streak makes more sense.

janaSunrise commented 3 years ago

Oh, weird! I didnt notice that, I'll try to figure that and fix it! Thanks for your immediate help, Appreciate it! :D

DenverCoder1 commented 3 years ago

@janaSunrise I only now noticed that you mentioned that you wanted to fix it. Sorry if I took away the opportunity by making the change to the code.

With the new code, your card should display like this with the end date being today's date (UTC)

image

It may take some time for the cached version to get refreshed by GitHub.

Let me know if you have any ideas on ways it can be improved further! :smiley:

janaSunrise commented 3 years ago

Ah great 😁 I'll find another issue to work on later then! For now everything's all good! Thanks for the great response!

Rafath-Auvee commented 1 year ago

I lost my streak. No reason at all. How do you fix it? @janaSunrise