diff options
author | Araq <rumpf_a@web.de> | 2017-05-17 22:13:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-05-17 22:13:57 +0200 |
commit | 8f67b90997d1c0416c4991ecec666a63339103c2 (patch) | |
tree | 45053004503995b050d04620705df209df8f2af7 /web | |
parent | 68573630340f60f452d5f206da37017e47bd8f6e (diff) | |
parent | c8cec27c0a503d6703536d54b9cc48684dc69086 (diff) | |
download | Nim-8f67b90997d1c0416c4991ecec666a63339103c2.tar.gz |
Merge branch 'araq2' into devel
Diffstat (limited to 'web')
-rw-r--r-- | web/bountysource.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/bountysource.nim b/web/bountysource.nim index 1d47cea56..5dfdb4497 100644 --- a/web/bountysource.nim +++ b/web/bountysource.nim @@ -33,13 +33,13 @@ proc getSupporters(self: BountySource): Future[JsonNode] {.async.} = let response = await self.client.get(apiUrl & "/supporters?order=monthly&per_page=200&team_slug=" & self.team) doAssert response.status.startsWith($Http200) - return parseJson(response.body) + return parseJson(await response.body) proc getGithubUser(username: string): Future[JsonNode] {.async.} = let client = newAsyncHttpClient() let response = await client.get(githubApiUrl & "/users/" & username) if response.status.startsWith($Http200): - return parseJson(response.body) + return parseJson(await response.body) else: echo("Could not get Github user: ", username, ". ", response.status) return nil |