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:
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: