Added asending and time record setters.
This commit is contained in:
+21
-1
@@ -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]":
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user