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

Score: Formátování statistik

parent 41b446fb
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,8 @@ def org_score(round_id: Optional[int] = None, hier_id: Optional[int] = None, ct_
return render_template(
'org_score.html',
ctx=ctx,
tasks=tasks, difficulties=difficulties,
tasks=tasks,
difficulties_fmt={t: f'{float(d):.2f}' for t, d in difficulties.items()},
table=table, messages=messages,
num_results=len(results),
group_rounds=group_rounds,
......
......@@ -102,7 +102,7 @@ Rozkliknutím bodů se lze dostat na detail daného řešení.</p>
<li>Průměrné počty bodů za úlohy:
<ul>
{% for t in tasks %}
<li>{{ t.code }}: {{ difficulties[t] }}
<li>{{ t.code }}: {{ difficulties_fmt[t] }}
{% endfor %}
</ul>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment