]> iEval git - gruntmaster-data.git/commitdiff
Add contest_start and contest_stop to pb_entry
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 1 Dec 2014 13:41:36 +0000 (15:41 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 1 Dec 2014 13:41:36 +0000 (15:41 +0200)
lib/Gruntmaster/Data.pm

index 949e1a41910b7bb3be44c8a8edd7e6a64f1f8f07..b27444335bbc301b7cdd004031e146db0ecad686 100644 (file)
@@ -126,7 +126,8 @@ sub problem_entry {
                        time => time,
                })
        } if $running;
                        time => time,
                })
        } if $running;
-       +{ $pb->get_columns, owner_name => $pb->owner->name, cansubmit => $contest ? $running : 1 }
+       $contest &&= $self->contest($contest);
+       +{ $pb->get_columns, owner_name => $pb->owner->name, cansubmit => $contest ? $running : 1, $running ? (contest_start => $contest->start, contest_stop => $contest->stop) : () }
 }
 
 sub contest_list {
 }
 
 sub contest_list {
This page took 0.027366 seconds and 4 git commands to generate.