Correct sort scores value.

This commit is contained in:
alwayscompiling
2022-08-01 21:56:23 -04:00
parent 109b22be62
commit af204a3156
+1 -1
View File
@@ -60,7 +60,7 @@ class Category:
self._scores_map[score.user] = score self._scores_map[score.user] = score
self._scores_map = dict( self._scores_map = dict(
sorted(self._scores_map.items(), key=lambda x: x[1].score, reverse=not self.ascending) sorted(self._scores_map.items(), key=lambda x: x[1].value, reverse=not self.ascending)
) )
def get_user_score(self, user: str) -> Score: def get_user_score(self, user: str) -> Score: