DippyAI commited on
Commit
b761223
·
verified ·
1 Parent(s): 9f4a5ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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