diff --git a/mo/web/org_score.py b/mo/web/org_score.py index 88b58005a3df84e09965a37f8bfd815efd7fe67a..4e5fa2ec4c051171656fbe3f4a76b735f94c4426 100644 --- a/mo/web/org_score.py +++ b/mo/web/org_score.py @@ -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, diff --git a/mo/web/templates/org_score.html b/mo/web/templates/org_score.html index c79e824d41992812f9bf03ef058c9b5d28df2497..3bce78309107a0b3c3c86ee60c73d17a70b57cf5 100644 --- a/mo/web/templates/org_score.html +++ b/mo/web/templates/org_score.html @@ -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 %}