Skip to content

Commit

Permalink
Merge pull request #2 from lasat/master
Browse files Browse the repository at this point in the history
fix get transactions and downloads path
  • Loading branch information
lolsteve authored Apr 22, 2017
2 parents 83c1e13 + 022c464 commit 2b923c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sia.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def get_renter_contracts(self):

def get_downloads(self):
"""Returns a list of files in the download queue."""
return self.http_get('renter/downloads').get('downloads')
return self.http_get('/renter/downloads').get('downloads')

def get_files(self):
"""Returns a list of all files."""
Expand Down Expand Up @@ -274,8 +274,7 @@ def get_transaction(self, transaction_id):
return self.http_get('/wallet/transaction/' + transaction_id).get('transaction')

def get_transactions(self, startheight, endheight):
payload = {'startheight': startheight, 'endheight': endheight}
return self.http_get('/wallet/transactions', payload)
return self.http_get('/wallet/transactions?startheight=%d&endheight=%d' % (startheight, endheight))

def get_transactions_related(self, address):
"""Returns a list of transactions related to the given address."""
Expand Down

0 comments on commit 2b923c4

Please # to comment.