Browse Source

fix dict merging (#19)

Signed-off-by: r4sas <r4sas@i2pmail.org>
dependabot/add-v2-config-file
R4SAS 5 years ago
parent
commit
641c55a6a2
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 5
      pbincli/api.py

5
pbincli/api.py

@ -107,9 +107,8 @@ class Shortener:
def getlink(self, url): def getlink(self, url):
if self.api == 'yourls': if self.api == 'yourls':
data_format = 'json' request = {'action': 'shorturl', 'format': 'json', 'url': url}
args = {'action': 'shorturl', 'format': data_format, 'url': url} request.update(self.auth_args)
reqest = dict(args.items() + self.auth_args.items())
result = self.session.post( result = self.session.post(
url = self.apiurl, url = self.apiurl,

Loading…
Cancel
Save