Skip to content

Commit

Permalink
Fix flake8 and improve steemconnect fix for holgern#57
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Jul 20, 2018
1 parent d655d66 commit 7220734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion beem/steemconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ def create_hot_sign_url(self, operation, params, redirect_uri=None):
if redirect_uri is not None:
params.update({"redirect_uri": redirect_uri})

params = urlencode(params).replace("%27", "%22")
for key in params:
if isinstance(params[key], list):
params[key] = json.dumps(params[key])
params = urlencode(params)
url = urljoin(base_url, "sign/%s" % operation)
url += "?" + params

Expand Down
2 changes: 1 addition & 1 deletion tests/beem/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_json_export(self, node_param):
content = self.bts.rpc.get_accounts([account["name"]])[0]
keys = list(content.keys())
json_content = account.json()
exclude_list = [] # ['json_metadata', 'reputation', 'active_votes', 'savings_sbd_seconds']
exclude_list = [] # ['json_metadata', 'reputation', 'active_votes', 'savings_sbd_seconds']
for k in keys:
if k not in exclude_list:
if isinstance(content[k], dict) and isinstance(json_content[k], list):
Expand Down

0 comments on commit 7220734

Please sign in to comment.