Clarified to_dict function description.

This commit is contained in:
alwayscompiling
2022-08-01 21:12:46 -04:00
parent 3d471198f5
commit 96fce1d661
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -75,7 +75,10 @@ class Category:
del score
def to_dict(self) -> dict:
"""Saves category data as a python dictionary."""
"""
Saves category data as a python dictionary.
Does not include category name. It should be the key of above data structure.
"""
data = {}
data["ascending"] = self.ascending
data["time_record"] = self.time_record