Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ def leaderboard_dashboard():
|
|
79 |
|
80 |
# Convert the data to a DataFrame
|
81 |
minerboard = pd.DataFrame(minerboard_data)
|
82 |
-
|
83 |
-
|
84 |
|
85 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
86 |
# Sort the minerboard_winrate by the total_score column
|
@@ -97,8 +97,15 @@ def leaderboard_dashboard():
|
|
97 |
|
98 |
minerboard_winrate = pd.DataFrame(minerboard_data)
|
99 |
|
|
|
|
|
|
|
|
|
|
|
100 |
minerboard_winrate['status'] = minerboard_winrate['status'].map(lambda status: status_emojis.get(status, status))
|
101 |
|
|
|
|
|
102 |
minerboard_winrate['win_rate'] = calculate_win_rate(minerboard_winrate)
|
103 |
|
104 |
minerboard_winrate = minerboard_winrate.sort_values(by='win_rate', ascending=False, ignore_index=True)
|
|
|
79 |
|
80 |
# Convert the data to a DataFrame
|
81 |
minerboard = pd.DataFrame(minerboard_data)
|
82 |
+
|
83 |
+
|
84 |
|
85 |
minerboard['status'] = minerboard['status'].map(lambda status: status_emojis.get(status, status))
|
86 |
# Sort the minerboard_winrate by the total_score column
|
|
|
97 |
|
98 |
minerboard_winrate = pd.DataFrame(minerboard_data)
|
99 |
|
100 |
+
minerboard_winrate['real_status'] = minerboard_winrate['status']
|
101 |
+
|
102 |
+
minerboard_winrate.loc[minerboard_winrate['real_status'] == 'FAILED', 'total_score'] = 0
|
103 |
+
|
104 |
+
|
105 |
minerboard_winrate['status'] = minerboard_winrate['status'].map(lambda status: status_emojis.get(status, status))
|
106 |
|
107 |
+
|
108 |
+
|
109 |
minerboard_winrate['win_rate'] = calculate_win_rate(minerboard_winrate)
|
110 |
|
111 |
minerboard_winrate = minerboard_winrate.sort_values(by='win_rate', ascending=False, ignore_index=True)
|