]> iEval git - plack-app-gruntmaster.git/commitdiff
Call calc_store from correct package
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 23 Jan 2015 14:41:22 +0000 (16:41 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 23 Jan 2015 14:42:28 +0000 (16:42 +0200)
lib/Plack/App/Gruntmaster/HTML.pm

index 0ac0c88b6fe17667139cd11983aaf8c751a84985..40d46affa440dd7ebc5653ab4cd26670b91739a6 100644 (file)
@@ -154,7 +154,7 @@ sub process_pb_entry {
                my $left = $args{contest_stop} - $args{time};
                $countdown->replace_content(sprintf '%02d:%02d:%02d', $left/60/60, $left/60%60, $left%60);
                $tree->fid('score')->attr('data-value' => $args{value});
-               $tree->fid('score')->replace_content(Gruntmaster::Data::calc_score($args{value}, $args{time} - $args{open_time}, 0, $args{contest_stop} - $args{contest_start}));
+               $tree->fid('score')->replace_content(Gruntmaster::Data::Result::Contest::calc_score($args{value}, $args{time} - $args{open_time}, 0, $args{contest_stop} - $args{contest_start}));
        } else {
                $_->detach for $tree->fclass('rc'); # requires contest
                $tree->fid('solution_modal')->fclass('modal-body')->replace_content(literal $args{solution});
This page took 0.029678 seconds and 4 git commands to generate.