Correct sort scores value.
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user