Skip to content

Commit

Permalink
Merge pull request #292 from eumiro/fix_fstrings
Browse files Browse the repository at this point in the history
refactor: use f-strings without bug
  • Loading branch information
halcy committed Dec 2, 2022
2 parents f5d4fbc + dde4c39 commit 78792a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mastodon/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def account_unmute(self, id):
Returns a :ref:`relationship dict <relationship dict>` containing the updated relationship to the user.
"""
id = self.__unpack_id(id)
return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute', params)
return self.__api_request('POST', f'/api/v1/accounts/{id}/unmute')

@api_version("1.1.1", "3.1.0", _DICT_VERSION_ACCOUNT)
def account_update_credentials(self, display_name=None, note=None,
Expand Down
2 changes: 1 addition & 1 deletion mastodon/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def admin_account_unsensitive(self, id):
Returns the updated :ref:`admin account dict <admin account dict>`.
"""
id = self.__unpack_id(id)
return self.__api_request('POST', f'/api/v1/admin/accounts/{f}/unsensitive')
return self.__api_request('POST', f'/api/v1/admin/accounts/{id}/unsensitive')

@api_version("2.9.1", "2.9.1", "2.9.1")
def admin_account_moderate(self, id, action=None, report_id=None, warning_preset_id=None, text=None, send_email_notification=True):
Expand Down

0 comments on commit 78792a7

Please sign in to comment.