Skip to content
Snippets Groups Projects
Commit d1b34c06 authored by Martin Mareš's avatar Martin Mareš
Browse files

org_score: U neúspěšných neuvádíme pořadí

parent 4776a5fd
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
......@@ -152,6 +152,12 @@ def org_score(round_id: Optional[int] = None, contest_id: Optional[int] = None):
school = pant.school_place
local_pion_ct_id = subcontest_id_map[(round.round_id, pion.contest_id)]
order_cell: Union[Cell, str]
if result.successful or not score.want_successful:
order_cell = OrderCell(result.order.place, result.order.span, result.order.continuation)
else:
order_cell = ""
if result.winner:
status = 'vítěz'
elif result.successful:
......@@ -160,7 +166,7 @@ def org_score(round_id: Optional[int] = None, contest_id: Optional[int] = None):
status = ""
row = Row(keys={
'order': OrderCell(result.order.place, result.order.span, result.order.continuation),
'order': order_cell,
'status': status,
'user': user,
'email': user.email,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment