projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8cc4fa
)
Use opens correctly when computing standings
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Mar 2014 20:25:58 +0000
(22:25 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Fri, 28 Mar 2014 20:25:58 +0000
(22:25 +0200)
lib/Gruntmaster/Page/St.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/St.pm
b/lib/Gruntmaster/Page/St.pm
index f5c4049cd9cb85bffc22f06bc5fd1b40cae700e6..4625138831f74c7b0c4ca2ef40710282910d9033 100644
(file)
--- a/
lib/Gruntmaster/Page/St.pm
+++ b/
lib/Gruntmaster/Page/St.pm
@@
-31,7
+31,7
@@
sub _generate{
for my $job (db($env)->jobs->search({contest => $ct && $ct->id}, {order_by => 'id'})) {
if ($ct) {
- my $open = db($env)->open($ct->id, $job->problem->id, $job->owner->id);
+ my $open = db($env)->open
s->find
($ct->id, $job->problem->id, $job->owner->id);
my $time = $job->date - ($open || $ct->start);
next if $time < 0;
my $value = $job->problem->value // LEVEL_VALUES->{$job->problem->level};
This page took
0.010719 seconds
and
4
git commands to generate.