fixed method signature for vote (added list type of int)

This commit is contained in:
Daniel Schwarz 2023-02-14 22:40:06 -05:00
parent ce34a2f05e
commit b2a0bc5634
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ def whois(app, user, account):
return http.get(app, user, f'/api/v1/accounts/{account}').json()
def vote(app, user, poll_id, choices: list):
def vote(app, user, poll_id, choices: list[int]):
url = f"/api/v1/polls/{poll_id}/votes"
json = {'choices': choices}
return http.post(app, user, url, json=json).json()