fix: Fix username with "-"
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run

This commit is contained in:
2024-11-03 01:35:38 -05:00
parent 4fe05d90e5
commit 455220f236

View File

@@ -87,6 +87,7 @@ async def get_short_github_info() -> str:
stats = f"**🐱 {FM.t('Awesome People!')}** \n\n" stats = f"**🐱 {FM.t('Awesome People!')}** \n\n"
data = GHM.USER.get_followers() data = GHM.USER.get_followers()
for user in data: for user in data:
username = user.login.replace("-", "--")
stats += f"![@{user.login}](https://img.shields.io/badge/@{user.login}-black?style=plastic&logo=github&logoColor=fff&link={user.html_url})" stats += f"![@{user.login}](https://img.shields.io/badge/@{user.login}-black?style=plastic&logo=github&logoColor=fff&link={user.html_url})"
stats += f"\nIf you follow my account you can appear on this list. *This list updates every 12h*\n\n" stats += f"\nIf you follow my account you can appear on this list. *This list updates every 12h*\n\n"