From 16e2a146db3af685fda24865b98a46384aee6e66 Mon Sep 17 00:00:00 2001 From: imacat Date: Tue, 7 Feb 2023 11:30:25 +0800 Subject: [PATCH] Fixed the documentation in the Account data model. --- src/accounting/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index f32d0f1..b429551 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -191,11 +191,10 @@ class Account(db.Model): @classmethod def find_by_code(cls, code: str) -> t.Self | None: - """Finds an accounting account by its code. + """Finds an account by its code. :param code: The code. - :return: The accounting account, or None if this account does not - exist. + :return: The account, or None if this account does not exist. """ m = re.match("^([1-9]{4})-([0-9]{3})$", code) if m is None: @@ -306,7 +305,7 @@ class Account(db.Model): return False def delete(self) -> None: - """Deletes this accounting account. + """Deletes this account. :return: None. """