mirror of
https://github.com/ihabunek/toot.git
synced 2024-11-03 04:17:21 -05:00
Fix problem with string formatting
%d would fail if given a string
This commit is contained in:
parent
209b3f5403
commit
729498559d
@ -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 New Issue
Block a user