Fix problem with string formatting
%d would fail if given a string
This commit is contained in:
parent
209b3f5403
commit
729498559d
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ def _post(app, user, url, data=None, files=None):
|
|||
|
||||
|
||||
def _account_action(app, user, account, action):
|
||||
url = '/api/v1/accounts/%d/%s' % (account, action)
|
||||
url = '/api/v1/accounts/{}/{}'.format(account, action)
|
||||
|
||||
return _post(app, user, url).json()
|
||||
|
||||
|
|
Loading…
Reference in a new issue