X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=39928bc87c5cb9eb5f78e2d8b58c545197da022c;hb=8dd9e3d3b38af8fb08b1d3186bda014657bf856f;hp=6bc1f79eccc2a3179300a2f60e4856bf1cf9f25b;hpb=e547b14775c26aab21ad24a7bd46522b5dd07522;p=plack-app-gruntmaster.git 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,