From: Marius Gavrilescu Date: Thu, 12 Feb 2015 14:34:36 +0000 (+0200) Subject: Make jobs sent to pending contests private X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=commitdiff_plain;h=8dd9e3d3b38af8fb08b1d3186bda014657bf856f Make jobs sent to pending contests private --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 6bc1f79..39928bc 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -244,6 +244,7 @@ sub dispatch_request{ my $source = $prog ? read_file $prog->path : $_{source_code}; unlink $prog->path if $prog; my $private = (problem->private && !$_{contest}) ? 1 : 0; + $private = 1 if contest->is_pending; my $newjob = db->jobs->create({ maybe contest => $_{contest}, private => $private,