Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
GitHub Actions
commited on
Commit
·
7359a65
1
Parent(s):
3e0cdad
Sync from GitHub repo
Browse files
models.py
CHANGED
@@ -334,9 +334,9 @@ def get_leaderboard_data(model_type):
|
|
334 |
"""
|
335 |
query = Model.query.filter_by(model_type=model_type)
|
336 |
|
337 |
-
# Get models with >
|
338 |
# Note: Model.match_count now only includes votes that count for public leaderboard
|
339 |
-
models = query.filter(Model.match_count >
|
340 |
|
341 |
result = []
|
342 |
for rank, model in enumerate(models, 1):
|
|
|
334 |
"""
|
335 |
query = Model.query.filter_by(model_type=model_type)
|
336 |
|
337 |
+
# Get models with >350 votes ordered by ELO score
|
338 |
# Note: Model.match_count now only includes votes that count for public leaderboard
|
339 |
+
models = query.filter(Model.match_count > 350).order_by(Model.current_elo.desc()).all()
|
340 |
|
341 |
result = []
|
342 |
for rank, model in enumerate(models, 1):
|