From 12dbae56c4d0b9f67a75a59b9b0d4b0ead6aba0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 12:13:59 +0800 Subject: [PATCH] Revised the f-strings in the "accounting.models" module. --- src/accounting/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index a9f5ae7..68de0e2 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -52,7 +52,7 @@ class BaseAccount(db.Model): :return: The string representation of the base account. """ - return F"{self.code} {self.title}" + return f"{self.code} {self.title}" @property def title(self) -> str: @@ -153,7 +153,7 @@ class Account(db.Model): :return: The string representation of this account. """ - return F"{self.base_code}-{self.no:03d} {self.title}" + return f"{self.base_code}-{self.no:03d} {self.title}" @property def code(self) -> str: @@ -161,7 +161,7 @@ class Account(db.Model): :return: The code. """ - return F"{self.base_code}-{self.no:03d}" + return f"{self.base_code}-{self.no:03d}" @property def title(self) -> str: @@ -354,7 +354,7 @@ class Currency(db.Model): :return: The string representation of the currency. """ - return F"{self.name} ({self.code})" + return f"{self.name} ({self.code})" @property def name(self) -> str: