Commit 1103dc43 authored by Philipp Markwardt's avatar Philipp Markwardt

DQ Members are not longer indexed for ranking

parent ab66dca3
......@@ -2,7 +2,7 @@
from sys import platform
from subprocess import call
from bottle import Bottle, run, template, HTTPResponse, static_file, post, request, get, redirect
from bottle import Bottle, run, template, HTTPResponse, static_file, post, request, get, redirect, server_names
from sqlobject import SQLObject, sqlhub, connectionForURI, BoolCol, StringCol, IntCol, DateCol, DateTimeCol, JSONCol, \
SQLObjectNotFound, \
ForeignKey, MultipleJoin, SingleJoin, RelatedJoin, dberrors
......@@ -1377,8 +1377,8 @@ def contest_control():
contest = Contest.get(int(request.query.getunicode('cid')))
contest_members_unsorted = list(ContestMemberStatus.selectBy(contest=contest))
contest_members = sorted(contest_members_unsorted,
key=lambda x: x.member.transponder.number if x.member.transponder else 0)
contest_members_finished = sorted([x for x in contest_members_unsorted if x.finish_time],
key=lambda x: int(x.member.transponder.number if x.member.transponder else 0)
contest_members_finished = sorted([x for x in contest_members_unsorted if x.has_succeeded()],
key=lambda x: x.finish_time, reverse=True)
return template('contest_control.html',
title=f"Livemonitor | {contest.name}",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment