Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
c2177d55
Commit
c2177d55
authored
2 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Score: Formátování statistik
parent
41b446fb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mo/web/org_score.py
+2
-1
2 additions, 1 deletion
mo/web/org_score.py
mo/web/templates/org_score.html
+1
-1
1 addition, 1 deletion
mo/web/templates/org_score.html
with
3 additions
and
2 deletions
mo/web/org_score.py
+
2
−
1
View file @
c2177d55
...
...
@@ -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
)
:
.
2
f
}
'
for
t
,
d
in
difficulties
.
items
()},
table
=
table
,
messages
=
messages
,
num_results
=
len
(
results
),
group_rounds
=
group_rounds
,
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_score.html
+
1
−
1
View file @
c2177d55
...
...
@@ -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 %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment