]> iEval git - gruntmaster-page.git/commitdiff
Use opens correctly when computing standings
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Mar 2014 20:25:58 +0000 (22:25 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 28 Mar 2014 20:25:58 +0000 (22:25 +0200)
lib/Gruntmaster/Page/St.pm

index f5c4049cd9cb85bffc22f06bc5fd1b40cae700e6..4625138831f74c7b0c4ca2ef40710282910d9033 100644 (file)
@@ -31,7 +31,7 @@ sub _generate{
        for my $job (db($env)->jobs->search({contest => $ct && $ct->id}, {order_by => 'id'})) {
 
                if ($ct) {
        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)->opens->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};
                        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.020167 seconds and 4 git commands to generate.