From 9484fd0b6fc494111e72a65133b4850bc6e852e2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 28 Mar 2014 22:25:58 +0200 Subject: [PATCH] Use opens correctly when computing standings --- lib/Gruntmaster/Page/St.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Page/St.pm b/lib/Gruntmaster/Page/St.pm index f5c4049..4625138 100644 --- 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)->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}; -- 2.39.2