diff --git a/sources/manager_download.py b/sources/manager_download.py index 59858ed..0505644 100644 --- a/sources/manager_download.py +++ b/sources/manager_download.py @@ -69,6 +69,7 @@ GITHUB_API_QUERIES = { owner { login } + isPrivate } pageInfo { endCursor diff --git a/sources/yearly_commit_calculator.py b/sources/yearly_commit_calculator.py index d93c365..f9a898f 100644 --- a/sources/yearly_commit_calculator.py +++ b/sources/yearly_commit_calculator.py @@ -21,7 +21,8 @@ async def calculate_yearly_commit_data(repositories: Dict) -> Dict: total = len(repositories["data"]["user"]["repositories"]["nodes"]) for ind, repo in enumerate(repositories["data"]["user"]["repositories"]["nodes"]): if repo["name"] not in EM.IGNORED_REPOS: - DBM.i(f"\t{ind + 1}/{total} Retrieving repo: {repo['owner']['login']}/{repo['name']}") + repo_name = "private" if repo["isPrivate"] else repo['owner']['login'] + "/" + repo['name'] + DBM.i(f"\t{ind + 1}/{total} Retrieving repo: {repo_name}") await update_yearly_data_with_commit_stats(repo, yearly_data) DBM.g("Yearly commit data calculated!") return yearly_data