From 4c002c24597683472c5d2f28b7f0adcf0d4c0daf Mon Sep 17 00:00:00 2001 From: Fran Date: Sun, 3 Nov 2024 01:47:48 -0500 Subject: [PATCH] feature: Update followers location --- sources/main.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sources/main.py b/sources/main.py index 04c2698..c4e4f07 100644 --- a/sources/main.py +++ b/sources/main.py @@ -82,15 +82,6 @@ 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" - DBM.i("Adding short GitHub info...") stats += f"**🐱 {FM.t('My GitHub Data')}** \n\n" @@ -175,6 +166,16 @@ 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&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" + if EM.SHOW_TOTAL_CODE_TIME: DBM.i("Adding total code time info...") data = await DM.get_remote_json("waka_all")