From e2848201da3accf6d67e44fe2fc036d2523d1020 Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 12:54:21 -0500 Subject: [PATCH 1/5] feature: Reorder and fix text --- sources/main.py | 20 ++++++++++++-------- sources/translation.json | 3 ++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/sources/main.py b/sources/main.py index 04c2698..94dfa78 100644 --- a/sources/main.py +++ b/sources/main.py @@ -82,14 +82,7 @@ async def get_short_github_info() -> str: :returns: String representation of the info. """ - 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&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" + stats = str() DBM.i("Adding short GitHub info...") stats += f"**🐱 {FM.t('My GitHub Data')}** \n\n" @@ -175,6 +168,17 @@ async def get_stats() -> str: yearly_data, commit_data = dict(), dict() 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 you can appear on this list. *This list updates every 12h*\n\n" + + stats += f"**📈 {FM.t('Stats')}** \n\n" + if EM.SHOW_TOTAL_CODE_TIME: DBM.i("Adding total code time info...") data = await DM.get_remote_json("waka_all") diff --git a/sources/translation.json b/sources/translation.json index 693bdc1..f7e7c8b 100644 --- a/sources/translation.json +++ b/sources/translation.json @@ -72,7 +72,8 @@ "private repositories": "%d Private Repositories", "I am an Early": "I'm an Early 🐤", "I am a Night": "I'm a Night 🦉", - "Awesome People!": "Awesome People!" + "Awesome People!": "Awesome People!", + "Stats!": "Stats" }, "bn": { "Monday": "সোমবার", From 90e9c14d8394746c0f98ac379e63308c74d9b4e2 Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 12:57:33 -0500 Subject: [PATCH 2/5] fix: Translation --- sources/main.py | 2 +- sources/translation.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/main.py b/sources/main.py index 94dfa78..be84bda 100644 --- a/sources/main.py +++ b/sources/main.py @@ -170,7 +170,7 @@ async def get_stats() -> str: if EM.SHOW_FOLLOWERS: DBM.i("Adding profile followers...") - stats = f"**🐱 {FM.t('Awesome People!')}** \n\n" + stats += f"**🐱 {FM.t('Awesome People!')}** \n\n" data = GHM.USER.get_followers() for user in data: username = user.login.replace("-", "--") diff --git a/sources/translation.json b/sources/translation.json index f7e7c8b..321cfd1 100644 --- a/sources/translation.json +++ b/sources/translation.json @@ -73,7 +73,7 @@ "I am an Early": "I'm an Early 🐤", "I am a Night": "I'm a Night 🦉", "Awesome People!": "Awesome People!", - "Stats!": "Stats" + "Stats": "Stats" }, "bn": { "Monday": "সোমবার", From 7b546b969a70c9b47a541e00840986ec6b7795c3 Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 13:04:02 -0500 Subject: [PATCH 3/5] fix: Emoji for people --- sources/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/main.py b/sources/main.py index be84bda..ee07f43 100644 --- a/sources/main.py +++ b/sources/main.py @@ -170,7 +170,7 @@ async def get_stats() -> str: if EM.SHOW_FOLLOWERS: DBM.i("Adding profile followers...") - stats += f"**🐱 {FM.t('Awesome People!')}** \n\n" + stats += f"**⭐ {FM.t('Awesome People!')}** \n\n" data = GHM.USER.get_followers() for user in data: username = user.login.replace("-", "--") From 8808bce0d97479964f050793a0d85ef06a2608a5 Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 13:05:48 -0500 Subject: [PATCH 4/5] fix: Text fix --- sources/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/main.py b/sources/main.py index ee07f43..f7c5588 100644 --- a/sources/main.py +++ b/sources/main.py @@ -175,7 +175,7 @@ async def get_stats() -> str: 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 you can appear on this list. *This list updates every 12h*\n\n" + stats += f"\n\n###### Follow my account to appear on this list. *This list updates every 12h*\n\n" stats += f"**📈 {FM.t('Stats')}** \n\n" From 45a6a626475db2f44077c4b3d1bd14a1686e41ab Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 13:08:07 -0500 Subject: [PATCH 5/5] fix: Text update --- sources/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/main.py b/sources/main.py index f7c5588..a659fdf 100644 --- a/sources/main.py +++ b/sources/main.py @@ -175,7 +175,7 @@ async def get_stats() -> str: 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. *This list updates every 12h*\n\n" + 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"