From 6bf18be455068a9702254dd05c9eb8f82f4e9087 Mon Sep 17 00:00:00 2001 From: imacat Date: Mon, 6 Feb 2023 11:42:22 +0800 Subject: [PATCH] Revised the coding style in the title setter of the Account data model. --- src/accounting/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index ad38bd6..0362b5c 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -187,8 +187,7 @@ class Account(db.Model): if l10n.locale == current_locale: l10n.title = value return - self.l10n.append(AccountL10n( - locale=current_locale, title=value)) + self.l10n.append(AccountL10n(locale=current_locale, title=value)) @classmethod def find_by_code(cls, code: str) -> t.Self | None: