Spaces:
Running
Running
Heatmap: Sort by category only when viewing all categories
Browse files
server.py
CHANGED
|
@@ -815,7 +815,7 @@ class LeaderboardServer:
|
|
| 815 |
for task, details in self.TASKS_METADATA.items():
|
| 816 |
task_to_category[details['abbreviation']] = details['category']
|
| 817 |
|
| 818 |
-
if category
|
| 819 |
# Create a Series from task_to_category with tasks as index
|
| 820 |
categories = pd.Series(task_to_category)
|
| 821 |
|
|
|
|
| 815 |
for task, details in self.TASKS_METADATA.items():
|
| 816 |
task_to_category[details['abbreviation']] = details['category']
|
| 817 |
|
| 818 |
+
if category == self.TASKS_CATEGORY_OVERALL_DETAILS:
|
| 819 |
# Create a Series from task_to_category with tasks as index
|
| 820 |
categories = pd.Series(task_to_category)
|
| 821 |
|