Renamed the "count" parameter to "value" in the setter of the "count" pseudo property of the Account data model, for consistency.

This commit is contained in:
依瑪貓 2023-04-26 13:35:51 +08:00
parent 8a1cf463b1
commit 914ff92e0f

View File

@ -228,13 +228,13 @@ class Account(db.Model):
return getattr(self, "__count")
@count.setter
def count(self, count: int) -> None:
def count(self, value: int) -> None:
"""Sets the number of items in the account.
:param count: The number of items in the account.
:param value: The number of items in the account.
:return: None.
"""
setattr(self, "__count", count)
setattr(self, "__count", value)
@property
def query_values(self) -> list[str]: