aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šedivý <[email protected]>2022-12-02 23:48:39 +0100
committerMiroslav Šedivý <[email protected]>2022-12-02 23:48:39 +0100
commitdde4c39600050164429b5d05fe986df3d7d593fa (patch)
tree4e3680c4025d1c11d4a8b2289c452ed21d4c5c5b /mastodon
parentf5d4fbc1f0bd61e80f9daced15d7ef7ee349b50f (diff)
downloadmastodon.py-dde4c39600050164429b5d05fe986df3d7d593fa.tar.gz
refactor: use f-strings without bug
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/accounts.py2
-rw-r--r--mastodon/admin.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/accounts.py b/mastodon/accounts.py
index 3d10088..cd43c57 100644
--- a/mastodon/accounts.py
+++ b/mastodon/accounts.py
@@ -392,7 +392,7 @@ class Mastodon(Internals):
392 Returns a :ref:`relationship dict <relationship dict>` containing the updated relationship to the user. 392 Returns a :ref:`relationship dict <relationship dict>` containing the updated relationship to the user.
393 """ 393 """
394 id = self.__unpack_id(id) 394 id = self.__unpack_id(id)
395 return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute', params) 395 return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute')
396 396
397 @api_version("1.1.1", "3.1.0", _DICT_VERSION_ACCOUNT) 397 @api_version("1.1.1", "3.1.0", _DICT_VERSION_ACCOUNT)
398 def account_update_credentials(self, display_name=None, note=None, 398 def account_update_credentials(self, display_name=None, note=None,
diff --git a/mastodon/admin.py b/mastodon/admin.py
index 422be35..405b30b 100644
--- a/mastodon/admin.py
+++ b/mastodon/admin.py
@@ -212,7 +212,7 @@ class Mastodon(Internals):
212 Returns the updated :ref:`admin account dict <admin account dict>`. 212 Returns the updated :ref:`admin account dict <admin account dict>`.
213 """ 213 """
214 id = self.__unpack_id(id) 214 id = self.__unpack_id(id)
215 return self.__api_request('POST', f'/api/v1/admin/accounts/{f}/unsensitive') 215 return self.__api_request('POST', f'/api/v1/admin/accounts/{id}/unsensitive')
216 216
217 @api_version("2.9.1", "2.9.1", "2.9.1") 217 @api_version("2.9.1", "2.9.1", "2.9.1")
218 def admin_account_moderate(self, id, action=None, report_id=None, warning_preset_id=None, text=None, send_email_notification=True): 218 def admin_account_moderate(self, id, action=None, report_id=None, warning_preset_id=None, text=None, send_email_notification=True):
Powered by cgit v1.2.3 (git 2.41.0)