]> iEval git - gruntmaster-data.git/commitdiff
Fix names returned by standings
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 15:03:42 +0000 (17:03 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 12 Dec 2014 15:03:42 +0000 (17:03 +0200)
lib/Gruntmaster/Data/Result/Contest.pm

index 4b1c1f4f288f8f1a0e9292deb01d58bb61711ed9..77ac716b8c6de2d9e45c7f380e6e8014611c023a 100644 (file)
@@ -212,7 +212,7 @@ sub standings {
                $scores{$job->rawowner}{$job->rawproblem} = int ($factor * calc_score ($value, $time, $tries{$job->rawowner}{$job->rawproblem}++, $self->stop - $self->start));
        }
 
-       my %user_to_name = map { $_ => $_->name } $self->result_source->schema->users->all;
+       my %user_to_name = map { $_->id => $_->name } $self->result_source->schema->users->all;
 
        my @st = sort { $b->{score} <=> $a->{score} or $a->{user} cmp $b->{user} } map { ## no critic (ProhibitReverseSortBlock)
                my $user = $_;
This page took 0.029821 seconds and 4 git commands to generate.