From: Marius Gavrilescu Date: Sat, 13 Dec 2014 16:09:01 +0000 (+0200) Subject: Add a no critic annotation X-Git-Tag: 5999.000_012~2 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1db27a21a91a72bdbe33d15fa31d16dfaf3b1e68;p=gruntmaster-data.git Add a no critic annotation --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index e8b5c73..627fb8b 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -43,7 +43,7 @@ BEGIN { sub user_list { my $rs = $_[0]->users->search(undef, {columns => USER_PUBLIC_COLUMNS, prefetch => [qw/problem_statuses contest_statuses/]} ); - [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} }map { + [ sort { $b->{solved} <=> $a->{solved} or $b->{attempted} <=> $a->{attempted} } map { ## no critic (ProhibitReverseSort) my $solved = $_->problem_statuses->count(solved => 1); my $attempted = $_->problem_statuses->count(solved => 0); my $contests = $_->contest_statuses->count;