diff --git a/contributors/contributor_stats.py b/contributors/contributor_stats.py index f14dd68..3a20b10 100644 --- a/contributors/contributor_stats.py +++ b/contributors/contributor_stats.py @@ -38,7 +38,8 @@ class ContributorStats: contribution_count: int commit_url: str sponsor_info: str - organisations: list[str] + organisations: list[str] = None + new_contributor = False diff --git a/contributors/contributors.py b/contributors/contributors.py index 9d01bc1..ee390f6 100644 --- a/contributors/contributors.py +++ b/contributors/contributors.py @@ -184,7 +184,7 @@ def get_contributors( contributions_count=user.contributions_count, commit_url=commit_url, sponsor_info="", - organisations=list(map(lambda x: x.name, user.organizations())), + organisations=list(map(lambda x: x.id, user.organizations())), ) contributors.append(contributor) except Exception as e: