Revised the coding style in the title setter of the Account data model.

This commit is contained in:
依瑪貓 2023-02-06 11:42:22 +08:00
parent 895bca2508
commit 6bf18be455

View File

@ -187,8 +187,7 @@ class Account(db.Model):
if l10n.locale == current_locale: if l10n.locale == current_locale:
l10n.title = value l10n.title = value
return return
self.l10n.append(AccountL10n( self.l10n.append(AccountL10n(locale=current_locale, title=value))
locale=current_locale, title=value))
@classmethod @classmethod
def find_by_code(cls, code: str) -> t.Self | None: def find_by_code(cls, code: str) -> t.Self | None: