]> iEval git - gruntmaster-data.git/commitdiff
Fix job_list error
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 20 Dec 2014 15:02:27 +0000 (17:02 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 20 Dec 2014 15:02:27 +0000 (17:02 +0200)
lib/Gruntmaster/Data.pm

index 61a8f4e43cd6d42b69bc0610e4983fe249e4cafb..aa3a5337cada23a424263b507b230677a625607b 100644 (file)
@@ -127,7 +127,7 @@ sub contest_entry {
 sub job_list {
        my ($self, %args) = @_;
        $args{page} //= 1;
-       my $rs = $self->jobs->search({private => 0}, {order_by => {-desc => 'me.id'}, prefetch => ['problem', 'owner'], rows => JOBS_PER_PAGE, page => $args{page}});
+       my $rs = $self->jobs->search({'me.private' => 0}, {order_by => {-desc => 'me.id'}, prefetch => ['problem', 'owner'], rows => JOBS_PER_PAGE, page => $args{page}});
        $rs = $rs->search({'me.owner' => $args{owner}})   if $args{owner};
        $rs = $rs->search({contest    => $args{contest}}) if $args{contest};
        $rs = $rs->search({problem    => $args{problem}}) if $args{problem};
This page took 0.023785 seconds and 4 git commands to generate.