Skip to content

Commit

Permalink
Change to id
Browse files Browse the repository at this point in the history
  • Loading branch information
HCookie committed Oct 16, 2024
1 parent 5e1219b commit 085c662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contributors/contributor_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion contributors/contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 085c662

Please sign in to comment.