Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,6 +69,8 @@ def leaderboard_dashboard():
|
|
| 69 |
minerboard_data = response.json()
|
| 70 |
# Convert the data to a DataFrame
|
| 71 |
minerboard = pd.DataFrame(minerboard_data)
|
|
|
|
|
|
|
| 72 |
|
| 73 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
| 74 |
# Sort the minerboard_winrate by the total_score column
|
|
|
|
| 69 |
minerboard_data = response.json()
|
| 70 |
# Convert the data to a DataFrame
|
| 71 |
minerboard = pd.DataFrame(minerboard_data)
|
| 72 |
+
# Set FAILED entries to have total_score as 0
|
| 73 |
+
minerboard.loc[minerboard['status'] == 'FAILED', 'total_score'] = 0
|
| 74 |
|
| 75 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
| 76 |
# Sort the minerboard_winrate by the total_score column
|