From cb0dea58f17430d000ad75d9eaf7bd49fb46235c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 1 Feb 2023 16:42:58 +0800 Subject: [PATCH] Fixed the documentation of the AccountConverter converter. --- src/accounting/account/converters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/accounting/account/converters.py b/src/accounting/account/converters.py index 88d4614..467eef2 100644 --- a/src/accounting/account/converters.py +++ b/src/accounting/account/converters.py @@ -28,10 +28,10 @@ class AccountConverter(BaseConverter): corresponding account in the routes.""" def to_python(self, value: str) -> Account: - """Converts a username to a user account. + """Converts an account code to an account. - :param value: The username. - :return: The corresponding user account. + :param value: The account code. + :return: The corresponding account. """ account: Account | None = Account.find_by_code(value) if account is None: