diff --git a/data/category.py b/data/category.py index 3604e2b..2029c50 100644 --- a/data/category.py +++ b/data/category.py @@ -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]": """