mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
fix: Correctly sort leaderboard by pass rate
This commit is contained in:
parent
3a0be0cca9
commit
674e3846e2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def analyze_exercise_solutions(topn=None):
|
|||
|
||||
# Sort models by pass rate to get top N if specified
|
||||
if topn:
|
||||
leaderboard.sort(key=lambda x: float(x.get("pass_rate_2", "0").rstrip("%")), reverse=True)
|
||||
leaderboard.sort(key=lambda x: float(x.get("pass_rate_2", 0)), reverse=True)
|
||||
leaderboard = leaderboard[:topn]
|
||||
|
||||
# Get all exercise names from a complete run
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue