Fix problem with string formatting - toot - Unnamed repository; edit this file … | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 729498559d6b986793aefdbe499424762645cf1b | |
parent 209b3f5403ce44e1b500ae3b11a8c6ee0f70052a | |
Author: Ivan Habunek <[email protected]> | |
Date: Tue, 14 Nov 2017 08:23:10 +0100 | |
Fix problem with string formatting | |
%d would fail if given a string | |
Diffstat: | |
toot/api.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/toot/api.py b/toot/api.py | |
@@ -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() | |