Added asending and time record setters.

This commit is contained in:
alwayscompiling
2022-08-04 11:06:36 -04:00
parent a6f98d11ab
commit 8aadf07968
+21 -1
View File
@@ -55,13 +55,23 @@ class Category:
@property
def ascending(self) -> bool:
"""
Getter for is ascending
Getter for is ascending.
Returns:
bool: is ascending
"""
return self._ascending
@ascending.setter
def ascending(self, ascending: bool) -> None:
"""
Setter for is ascending.
Args:
ascending (bool): is ascending
"""
self._ascending = ascending
@property
def name(self) -> str:
"""
@@ -82,6 +92,16 @@ class Category:
"""
return self._time_record
@time_record.setter
def time_record(self, time_record: bool) -> None:
"""
Setter for is time record.
Args:
time_record (bool): is time record
"""
self._time_record = time_record
@property
def scores(self) -> "list[Score]":
"""