mrfakename commited on
Commit
00a2513
1 Parent(s): aea0389
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ def get_leaderboard(reveal_prelim: bool):
81
  conn = get_db()
82
  cursor = conn.cursor()
83
  sql = 'SELECT name, upvote, downvote FROM model'
84
- if not reveal_prelim: sql += 'WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
85
  cursor.execute(sql)
86
  data = cursor.fetchall()
87
  df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])
 
81
  conn = get_db()
82
  cursor = conn.cursor()
83
  sql = 'SELECT name, upvote, downvote FROM model'
84
+ if not reveal_prelim: sql += ' WHERE EXISTS (SELECT 1 FROM model WHERE (upvote + downvote) > 750)'
85
  cursor.execute(sql)
86
  data = cursor.fetchall()
87
  df = pd.DataFrame(data, columns=['name', 'upvote', 'downvote'])