projects
/
gruntmaster-data.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make standings DTRT when a contest has no jobs
[gruntmaster-data.git]
/
lib
/
Gruntmaster
/
Data
/
Result
/
Contest.pm
diff --git
a/lib/Gruntmaster/Data/Result/Contest.pm
b/lib/Gruntmaster/Data/Result/Contest.pm
index a82bc0f2a4fdb85ffc71b9924ea79dec84b536d2..4ea2f1ae988f189b76d074073c06105b9940ba47 100644
(file)
--- a/
lib/Gruntmaster/Data/Result/Contest.pm
+++ b/
lib/Gruntmaster/Data/Result/Contest.pm
@@
-235,7
+235,7
@@
sub standings {
}
} keys %scores;
- $st[0]->{rank} = 1;
+ $st[0]->{rank} = 1
if @st
;
$st[$_]->{rank} = $st[$_ - 1]->{rank} + ($st[$_]->{score} < $st[$_ - 1]->{score}) for 1 .. $#st;
@st
}
This page took
0.009519 seconds
and
4
git commands to generate.