From 022c464138df034e51a3b3db8275b999931e6131 Mon Sep 17 00:00:00 2001 From: lasat Date: Sat, 22 Apr 2017 22:12:38 +0100 Subject: [PATCH] fix get transactions and downloads path --- sia.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sia.py b/sia.py index 2a4684a..0800c5b 100644 --- a/sia.py +++ b/sia.py @@ -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.""" @@ -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."""