Skip to content

Commit

Permalink
Fix code style problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkenJaden authored Jun 1, 2023
1 parent cd7df8f commit ad4a82c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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


Expand Down

0 comments on commit ad4a82c

Please sign in to comment.