Skip to content

Commit

Permalink
fix: bugs with cli and config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Alla committed Nov 12, 2020
1 parent 450b57c commit c9c381a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion netlify_builds/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def main():
async def run_async():
team_tokens = read_config()
async with httpx.AsyncClient(timeout=3) as client:
tasks = [make_request(client, team, token) for team, token in team_tokens]
tasks = [
make_request(client, team, token) for team, token in team_tokens.items()
]
team_responses = await asyncio.gather(*tasks)
rows = [
parse_response(team, response_data)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages = [
"Changelog" = "https://netlify-builds.readthedocs.io/changelog.html"

[tool.poetry.scripts]
netlify-builds = "netlify_builds.main:main"
netlify-builds = "netlify_builds.cli:main"

[tool.poetry.dependencies]
python = "^3.6"
Expand Down

0 comments on commit c9c381a

Please sign in to comment.