Fix dict update
This commit is contained in:
parent
a9236750d0
commit
0c587f8716
|
@ -40,8 +40,8 @@ class KumiSMS:
|
||||||
def check(self):
|
def check(self):
|
||||||
return bool(self.balance())
|
return bool(self.balance())
|
||||||
|
|
||||||
def _request(self, url, data=None):
|
def _request(self, url, data={}):
|
||||||
data = {"key": self.key}.update(data)
|
data.update({"key": self.key})
|
||||||
body = json.dumps(data)
|
body = json.dumps(data)
|
||||||
request = urllib.request.urlopen(url, body)
|
request = urllib.request.urlopen(url, body)
|
||||||
content = json.loads(request.read())
|
content = json.loads(request.read())
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = kumisms
|
name = kumisms
|
||||||
version = 0.1.1
|
version = 0.1.2
|
||||||
description = Class to interact with KumiSMS
|
description = Class to interact with KumiSMS
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
url = https://kumig.it/kumisystems/pykumisms
|
url = https://kumig.it/kumisystems/pykumisms
|
||||||
|
|
Loading…
Reference in a new issue