]> iEval git - gruntmaster-data.git/commitdiff
Sort jobs correctly for update_status
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 08:01:59 +0000 (10:01 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 08:01:59 +0000 (10:01 +0200)
lib/Gruntmaster/Data.pm

index d9f61aa172afab7f8c484650d7c9423e93b9deb3..b4a124ce3c4f7e5b168e4d09136d6cd8b3bb4c5c 100644 (file)
@@ -178,7 +178,7 @@ sub job_entry {
 
 sub update_status {
        my ($self) = @_;
-       my @jobs = $self->jobs->search({'me.private' => 0}, {cache => 1, prefetch => 'problem'})->all;
+       my @jobs = $self->jobs->search({'me.private' => 0}, {cache => 1, prefetch => 'problem', order_by => 'me.id'})->all;
 
        my %private;
        my %hash;
This page took 0.024493 seconds and 4 git commands to generate.