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

pull/312/head
Daniel Schwarz 2023-02-14 22:40:06 -05:00
rodzic ce34a2f05e
commit b2a0bc5634
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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()