diff options
author | Lorenz Diener <[email protected]> | 2022-12-03 01:05:00 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-03 01:05:00 +0200 |
commit | 78792a70b948796df5d50b4aa226186de0a756c4 (patch) | |
tree | 4e3680c4025d1c11d4a8b2289c452ed21d4c5c5b | |
parent | f5d4fbc1f0bd61e80f9daced15d7ef7ee349b50f (diff) | |
parent | dde4c39600050164429b5d05fe986df3d7d593fa (diff) | |
download | mastodon.py-78792a70b948796df5d50b4aa226186de0a756c4.tar.gz |
Merge pull request #292 from eumiro/fix_fstrings
refactor: use f-strings without bug
-rw-r--r-- | mastodon/accounts.py | 2 | ||||
-rw-r--r-- | mastodon/admin.py | 2 |
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): |