Compare commits

..

6 Commits

Author SHA1 Message Date
be8e3b9f7b Merge pull request 'order' (#1) from order into master
Some checks failed
CODESTYLE / Run codestyle check (push) Failing after 23m25s
CodeQL / Analyze (python) (push) Failing after 11m21s
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Successful in 34m2s
Reviewed-on: #1
2024-11-03 10:46:19 -08:00
45a6a62647 fix: Text update
Some checks failed
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Has been cancelled
CODESTYLE / Run codestyle check (push) Has been cancelled
CI / Run Test and Review PR (pull_request) Has been cancelled
CodeQL / Analyze (python) (pull_request) Has been cancelled
Dependency review / dependency-review (pull_request) Failing after 25s
2024-11-03 13:08:07 -05:00
8808bce0d9 fix: Text fix
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run
2024-11-03 13:05:48 -05:00
7b546b969a fix: Emoji for people
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run
2024-11-03 13:04:02 -05:00
90e9c14d83 fix: Translation
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run
2024-11-03 12:57:33 -05:00
e2848201da feature: Reorder and fix text
Some checks are pending
PUBLISH_IMAGE / Publish 'waka-readme-stats' image (push) Waiting to run
CODESTYLE / Run codestyle check (push) Waiting to run
2024-11-03 12:54:21 -05:00
2 changed files with 14 additions and 9 deletions

View File

@@ -82,14 +82,7 @@ async def get_short_github_info() -> str:
:returns: String representation of the info. :returns: String representation of the info.
""" """
if EM.SHOW_FOLLOWERS: stats = str()
DBM.i("Adding profile followers...")
stats = f"**🐱 {FM.t('Awesome People!')}** \n\n"
data = GHM.USER.get_followers()
for user in data:
username = user.login.replace("-", "--")
stats += f"![@{user.login}](https://img.shields.io/badge/@{username}-black?style=plastic&logo=github&logoColor=fff&link={user.html_url})"
stats += f"\n\nIf you follow my account you can appear on this list. *This list updates every 12h*\n\n"
DBM.i("Adding short GitHub info...") DBM.i("Adding short GitHub info...")
stats += f"**🐱 {FM.t('My GitHub Data')}** \n\n" stats += f"**🐱 {FM.t('My GitHub Data')}** \n\n"
@@ -175,6 +168,17 @@ async def get_stats() -> str:
yearly_data, commit_data = dict(), dict() yearly_data, commit_data = dict(), dict()
DBM.w("User yearly data not needed, skipped.") DBM.w("User yearly data not needed, skipped.")
if EM.SHOW_FOLLOWERS:
DBM.i("Adding profile followers...")
stats += f"**⭐ {FM.t('Awesome People!')}** \n\n"
data = GHM.USER.get_followers()
for user in data:
username = user.login.replace("-", "--")
stats += f"[![@{user.login}](https://img.shields.io/badge/@{username}-black?style=plastic&logo=github&logoColor=fff)]({user.html_url}) "
stats += f"\n\n###### Follow my account to appear on this list. *The list updates every 12h*\n\n"
stats += f"**📈 {FM.t('Stats')}** \n\n"
if EM.SHOW_TOTAL_CODE_TIME: if EM.SHOW_TOTAL_CODE_TIME:
DBM.i("Adding total code time info...") DBM.i("Adding total code time info...")
data = await DM.get_remote_json("waka_all") data = await DM.get_remote_json("waka_all")

View File

@@ -72,7 +72,8 @@
"private repositories": "%d Private Repositories", "private repositories": "%d Private Repositories",
"I am an Early": "I'm an Early 🐤", "I am an Early": "I'm an Early 🐤",
"I am a Night": "I'm a Night 🦉", "I am a Night": "I'm a Night 🦉",
"Awesome People!": "Awesome People!" "Awesome People!": "Awesome People!",
"Stats": "Stats"
}, },
"bn": { "bn": {
"Monday": "সোমবার", "Monday": "সোমবার",