Rank not updating #3619
-
Describe the bugI have been observing the contribution stats card for a couple of days now but it is not updating on my README.MD file although it is updated on the link itself, everything else excluding the rank is updating. Expected behaviorThe expected behavior for the card is that its rank should change with the updates and all and when you check the link itself it shows the correct rank but not in my readme file I thought it would update after a couple of days but that's not the case here.The expected Screenshots / Live demo link
Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey, @Rizwans-github! Weight of the commits count during rank calculation can be different depending on commits count basis, it can be yearly or all time. When using yearly basis the weight of commits count is 4x times more than when using all time basis. Here is the code: https://github.com/anuraghazra/github-readme-stats/blob/master/src/calculateRank.js#L47. On the first screenshot the commits count is calculated yearly, so the rank is higher. On the second screenshot stats card shows all time commits, so the rank is lower. All correct. |
Beta Was this translation helpful? Give feedback.
Hey, @Rizwans-github! Weight of the commits count during rank calculation can be different depending on commits count basis, it can be yearly or all time. When using yearly basis the weight of commits count is 4x times more than when using all time basis. Here is the code: https://github.com/anuraghazra/github-readme-stats/blob/master/src/calculateRank.js#L47. On the first screenshot the commits count is calculated yearly, so the rank is higher. On the second screenshot stats card shows all time commits, so the rank is lower. All correct.