Skip to content

Commit

Permalink
Merge pull request #20 from vipyrsec/Robin5605-patch-1
Browse files Browse the repository at this point in the history
Make `PyPIClient.echo` actually return username string
  • Loading branch information
Robin5605 authored Mar 8, 2024
2 parents ca7052d + 648ba3e commit 7120beb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reporter/pypi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(self) -> None:

async def echo(self) -> str:
response = await self.http_client.get("/echo")
return response.text
json = await response.json()
return json["username"]

async def send_observation(self, project_name: str, observation: Observation) -> None:
path = f"/projects/{project_name}/observations"
Expand Down

0 comments on commit 7120beb

Please sign in to comment.