Skip to content

Commit be98fa1

Browse files
committed
Currency api changes
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent c2db1b9 commit be98fa1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

labstack/currency.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ class Currency():
44
def __init__(self, client):
55
self.client = client
66

7-
def convert(self, from_, to, amount):
7+
def convert(self, amount, from_, to):
88
return self.client._request('GET', '/currency/convert', params={
9+
'amount': amount,
910
'from': from_,
10-
'to': to,
11-
'amount': amount
11+
'to': to
1212
})
1313

1414
def rates(self, base):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='labstack',
5-
version='0.31.2',
5+
version='0.31.3',
66
description='Official Python client library for the LabStack API',
77
long_description='`<https://github.com/labstack/labstack-python>`_',
88
keywords='image compress, image resize, text summary, barcode generate, barcode scan',

0 commit comments

Comments
 (0)