projects
/
plack-app-gruntmaster.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ee16e
)
Make jobs sent to pending contests private
author
Marius Gavrilescu
<marius@ieval.ro>
Thu, 12 Feb 2015 14:34:36 +0000
(16:34 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Thu, 12 Feb 2015 14:34:36 +0000
(16:34 +0200)
lib/Plack/App/Gruntmaster.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster.pm
b/lib/Plack/App/Gruntmaster.pm
index 6bc1f79eccc2a3179300a2f60e4856bf1cf9f25b..39928bc87c5cb9eb5f78e2d8b58c545197da022c 100644
(file)
--- 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,
This page took
0.009865 seconds
and
4
git commands to generate.