From 2431260b62f32021098cf47666afb335c708138f Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 1 Dec 2014 15:41:36 +0200 Subject: [PATCH] Add contest_start and contest_stop to pb_entry --- lib/Gruntmaster/Data.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.2