Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/generate_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async def generate_languages(self) -> None:
lang_count: str = str(len(sorted_languages))
num_excluded_languages: int = len(await self.__stats.excluded_languages)
if num_excluded_languages > 0:
lang_count += " [+" + str(num_excluded_languages) + "]"
lang_count += " [+" + str(num_excluded_languages) + " hidden]"

delay_between: int = 150

Expand Down
5 changes: 4 additions & 1 deletion src/github_repo_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ async def is_repo_name_invalid(self, repo_name: str) -> bool:
:return: True if repo is not to be included in self._repos
"""
return (
# repo_name in self._repos
(
len(self.environment_vars.only_included_owners) > 0
and repo_name.split("/")[0]
Expand All @@ -109,6 +108,8 @@ async def is_repo_name_invalid(self, repo_name: str) -> bool:
or (
len(self.environment_vars.only_included_repos) > 0
and repo_name not in self.environment_vars.only_included_repos
and repo_name.split("/")[0]
not in self.environment_vars.only_included_owners
)
or repo_name in self.environment_vars.exclude_repos
or repo_name.split("/")[0] in self.environment_vars.exclude_owners
Expand Down Expand Up @@ -173,6 +174,8 @@ async def get_stats(self) -> None:
)
elif user_raw_result.get("message", "").lower() == "bad credentials":
raise ConnectionRefusedError("Unauthorized Error: Invalid Access Token")
else:
raise Exception(f"Error: {user_raw_result.get('message', '')}")

while True:
repo_overview_raw_results: dict[str, dict] = await self.queries.query(
Expand Down
2 changes: 1 addition & 1 deletion src/templates/languages.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions test/git_stats_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
ONLY_INCLUDED_REPOS: str = getenv(
"ONLY_INCLUDED_REPOS"
) # or enter: '[owner/repo],...,[owner/repo]'
ONLY_INCLUDED_OWNERS: str = (
"University-Project-Repos" # getenv("ONLY_INCLUDED_OWNERS") # or enter: [owner],...,[owner]
)
ONLY_INCLUDED_OWNERS: str = getenv(
"ONLY_INCLUDED_OWNERS"
) # or enter: [owner],...,[owner]
ONLY_INCLUDED_COLLAB_REPOS: str = getenv(
"ONLY_INCLUDED_COLLAB_REPOS"
) # or enter: [owner/repo],...,[owner/repo]
Expand Down