Added asending and time record setters.
This commit is contained in:
+21
-1
@@ -55,13 +55,23 @@ class Category:
|
|||||||
@property
|
@property
|
||||||
def ascending(self) -> bool:
|
def ascending(self) -> bool:
|
||||||
"""
|
"""
|
||||||
Getter for is ascending
|
Getter for is ascending.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
bool: is ascending
|
bool: is ascending
|
||||||
"""
|
"""
|
||||||
return self._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
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
"""
|
"""
|
||||||
@@ -82,6 +92,16 @@ class Category:
|
|||||||
"""
|
"""
|
||||||
return self._time_record
|
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
|
@property
|
||||||
def scores(self) -> "list[Score]":
|
def scores(self) -> "list[Score]":
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user