Fix dict update

This commit is contained in:
Kumi 2020-10-24 11:42:20 +02:00
parent a9236750d0
commit 0c587f8716
2 changed files with 3 additions and 3 deletions

View file

@ -40,8 +40,8 @@ class KumiSMS:
def check(self):
return bool(self.balance())
def _request(self, url, data=None):
data = {"key": self.key}.update(data)
def _request(self, url, data={}):
data.update({"key": self.key})
body = json.dumps(data)
request = urllib.request.urlopen(url, body)
content = json.loads(request.read())

View file

@ -1,6 +1,6 @@
[metadata]
name = kumisms
version = 0.1.1
version = 0.1.2
description = Class to interact with KumiSMS
long_description = file: README.md
url = https://kumig.it/kumisystems/pykumisms