pravin-X109 commited on
Commit
8d06a24
·
1 Parent(s): 90b01aa

Update Minerboard

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -76,6 +76,7 @@ def leaderboard_dashboard():
76
  unsafe_allow_html=True,
77
  )
78
  return
 
79
  # Convert the data to a DataFrame
80
  minerboard = pd.DataFrame(minerboard_data)
81
 
@@ -83,7 +84,8 @@ def leaderboard_dashboard():
83
  # Sort the minerboard_winrate by the total_score column
84
  minerboard = minerboard.sort_values(by='total_score', ascending=False, ignore_index=True)
85
 
86
- front_order = ['uid', 'hotkey', 'total_score', 'status', 'hash']
 
87
 
88
  # move status column to the front
89
  column_order = front_order + [column for column in minerboard.columns if column not in front_order]
@@ -99,7 +101,10 @@ def leaderboard_dashboard():
99
 
100
  minerboard_winrate = minerboard_winrate.sort_values(by='win_rate', ascending=False, ignore_index=True)
101
 
102
- column_order = ['uid', 'win_rate', 'hotkey', 'hash', 'total_score', 'block', 'status']
 
 
 
103
 
104
  # Create a new DataFrame with only the specified columns
105
  minerboard_winrate = minerboard_winrate[column_order]
 
76
  unsafe_allow_html=True,
77
  )
78
  return
79
+
80
  # Convert the data to a DataFrame
81
  minerboard = pd.DataFrame(minerboard_data)
82
 
 
84
  # Sort the minerboard_winrate by the total_score column
85
  minerboard = minerboard.sort_values(by='total_score', ascending=False, ignore_index=True)
86
 
87
+ # front_order = ['repo_name','uid', 'hotkey', 'total_score', 'status', 'hash']
88
+ front_order = ['uid', 'repo_name', 'repo_namespace', 'hotkey', 'total_score', 'status', 'hash']
89
 
90
  # move status column to the front
91
  column_order = front_order + [column for column in minerboard.columns if column not in front_order]
 
101
 
102
  minerboard_winrate = minerboard_winrate.sort_values(by='win_rate', ascending=False, ignore_index=True)
103
 
104
+ # column_order = ['uid', 'win_rate', 'hotkey', 'hash', 'total_score', 'block', 'status']
105
+
106
+ column_order = ['uid', 'repo_name', 'repo_namespace', 'win_rate', 'hotkey', 'hash', 'total_score', 'block', 'status']
107
+
108
 
109
  # Create a new DataFrame with only the specified columns
110
  minerboard_winrate = minerboard_winrate[column_order]