From: Marius Gavrilescu Date: Mon, 1 Dec 2014 13:41:36 +0000 (+0200) Subject: Add contest_start and contest_stop to pb_entry X-Git-Tag: 5999.000_011~3 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=2431260b62f32021098cf47666afb335c708138f;p=gruntmaster-data.git Add contest_start and contest_stop to pb_entry --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 949e1a4..b274443 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -126,7 +126,8 @@ sub problem_entry { 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 {