Skip to content

Commit

Permalink
Fixes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shariff-6 committed Dec 23, 2024
1 parent 4b21ed3 commit e433ee4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions integrations/jira/jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,19 @@ async def get_paginated_team_members(
):
yield members

async def fetch_team_members(self, team_id: str, org_id: str) -> list[dict[str, Any]]:
async def fetch_team_members(
self, team_id: str, org_id: str
) -> list[dict[str, Any]]:
members = []
async for batch in self.get_paginated_team_members(team_id, org_id):
members.extend(batch)
return members

async def enrich_teams_with_members(self, teams: list[dict[str, Any]], org_id: str) -> list[dict[str, Any]]:
async def enrich_teams_with_members(
self, teams: list[dict[str, Any]], org_id: str
) -> list[dict[str, Any]]:
logger.debug(f"Fetching members for {len(teams)} teams")

team_tasks = [self.fetch_team_members(team["teamId"], org_id) for team in teams]
results = await asyncio.gather(*team_tasks)

Expand Down

0 comments on commit e433ee4

Please sign in to comment.