krishnaacharyaa / github-stackoverflow-readme

📊 Showcase your contributions to the community with live Stack Overflow stats in your GitHub readme ✨
https://github-stackoverflow-readme.vercel.app
MIT License
16 stars 3 forks source link

[Bug] Do not have some badges at all, the badge count displayed incorrectly. #2

Open soonhankwon opened 5 months ago

soonhankwon commented 5 months ago

hello. Your open source project is great. However, I found one problem while using it.

The point is that the badge count is inaccurate.

For example, if user have 4 bronze badges, 0 gold buttons, and 0 silver buttons, the count for the 4 gold buttons, silver buttons, and bronze buttons count will not be displayed.

This is a situation in which the badge count is pushed back when some badges do not exist at all in the logic.

Inaccurate results are output for numbers in the five cases below.

  1. only have gold badges
  2. only have gold and bronze badges
  3. only have silver badges
  4. only have silver and bronze badges
  5. only have bronze badges

I hope this can be improved. thank you :)

krishnaacharyaa commented 5 months ago

@soonhankwon Thank you for observing this and raising the issue, I had not tested this use-case. Will look into this and fix at the earliest :)

faizananwerali commented 5 months ago

This is definitely an issue,

stackoverflow-stats

https://stackoverflow.com/users/3774282/faizan-anwer-ali

But in my profile I don't have golden badges

Screenshot 2024-04-03 at 11 03 23 PM
devxbasit commented 1 month ago

showing wrong stats(https://stackoverflow.com/users/16456741/basit?tab=profile) image image