mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-09 16:24:26 +01:00
fix count in get_standings doesn't work (#132)
This commit is contained in:
@@ -23,7 +23,7 @@ def get_standings(admin=False, count=None):
|
||||
.join(sumscores, Teams.id == sumscores.columns.teamid) \
|
||||
.filter(Teams.banned == False) \
|
||||
.order_by(sumscores.columns.score.desc(), sumscores.columns.date)
|
||||
if count is not None:
|
||||
if count is None:
|
||||
standings = standings_query.all()
|
||||
else:
|
||||
standings = standings_query.limit(count).all()
|
||||
|
||||
Reference in New Issue
Block a user