You've already forked wakapi-readme-stats
feature: Update followers location
This commit is contained in:
@@ -82,15 +82,6 @@ async def get_short_github_info() -> str:
|
|||||||
:returns: String representation of the info.
|
: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""
|
|
||||||
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 +166,16 @@ 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""
|
||||||
|
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:
|
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user