From cd7df8f26094f2fca6e0926717f8f8925cfbafe7 Mon Sep 17 00:00:00 2001 From: Jan Jaden Schmidt Date: Thu, 13 Apr 2023 14:27:04 +0200 Subject: [PATCH] Changed variable name back to contributed_nodes I think it makes more sense to leave the variable written out to make the code easier to understand. --- sources/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/main.py b/sources/main.py index 8cdf5cd2..d3b2fab6 100644 --- a/sources/main.py +++ b/sources/main.py @@ -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