Skip to content

Commit

Permalink
Fix wrong unshorten func param
Browse files Browse the repository at this point in the history
  • Loading branch information
amitt001 committed Jun 4, 2018
1 parent 67260ba commit 5c8cd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyui/pygmy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def link_auth(request):
code, secret_key=secret_key)
response = dict(clickmeta=clickmeta)
else:
url_obj = pygmy_client.unshorten(code, secret_key=secret_key)
url_obj = pygmy_client.unshorten(code, secret=secret_key)
response = dict(long_url=url_obj['long_url'])
except UnAuthorized:
response = dict(error='Wrong secret key.')
Expand Down

0 comments on commit 5c8cd77

Please sign in to comment.