Fix problem with string formatting

%d would fail if given a string
This commit is contained in:
Ivan Habunek 2017-11-14 08:23:10 +01:00
parent 209b3f5403
commit 729498559d
No known key found for this signature in database
GPG key ID: CDBD63C43A30BB95

View file

@ -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()