Skip to content

Commit

Permalink
Changed variable name back to contributed_nodes
Browse files Browse the repository at this point in the history
I think it makes more sense to leave the variable written out to make the code easier to understand.
  • Loading branch information
MarkenJaden authored Apr 13, 2023
1 parent a58617f commit cd7df8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,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)
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"]]
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"]]
DBM.g("\tUser contributed to repository list collected!")

repositories["data"]["user"]["repositories"]["nodes"] += cn
repositories["data"]["user"]["repositories"]["nodes"] += contributed_nodes
return repositories


Expand Down

0 comments on commit cd7df8f

Please sign in to comment.