From ad4a82ce0f0c9b52d555521ab054b5e335b6d09b Mon Sep 17 00:00:00 2001 From: Jan Jaden Schmidt Date: Thu, 1 Jun 2023 13:44:09 +0200 Subject: [PATCH] Fix code style problem --- sources/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/main.py b/sources/main.py index d3b2fab6..10fb28b2 100644 --- a/sources/main.py +++ b/sources/main.py @@ -124,6 +124,8 @@ async def get_short_github_info() -> str: async def collect_user_repositories() -> Dict: """ Collects information about all the user repositories available. + + Side note: "cn" stands for contributed nodes but is shortened to conform to the code style :returns: Complete list of user repositories. """ @@ -134,10 +136,10 @@ async def collect_user_repositories() -> Dict: DBM.g("\tUser repository list collected!") contributed = await DM.get_remote_graphql("repos_contributed_to", username=GHM.USER.login) - contributed_nodes = [r for r in contributed["data"]["user"]["repositoriesContributedTo"]["nodes"] if r is not None and r["name"] not in repo_names and not r["isFork"]] + cn = [r for r in contributed["data"]["user"]["repositoriesContributedTo"]["nodes"] if r is not None and r["name"] not in repo_names and not r["isFork"]] DBM.g("\tUser contributed to repository list collected!") - repositories["data"]["user"]["repositories"]["nodes"] += contributed_nodes + repositories["data"]["user"]["repositories"]["nodes"] += cn return repositories