From 085c66291b592515f180e05f72849ea22f4dfa8b Mon Sep 17 00:00:00 2001 From: Harrison Date: Wed, 16 Oct 2024 17:17:39 +0100 Subject: [PATCH] Change to id --- contributors/contributor_stats.py | 3 ++- contributors/contributors.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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: