Commit 0c587f87 authored by Kumi's avatar Kumi
Browse files

Fix dict update

parent a9236750
Pipeline #325 canceled with stages
......@@ -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())
......
[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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment