projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3825b4b
)
Make private 1 or 0 instead of 1 or empty string
author
Marius Gavrilescu
<marius@ieval.ro>
Thu, 5 Feb 2015 14:16:26 +0000
(16:16 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 7 Feb 2015 11:07:20 +0000
(13:07 +0200)
(cherry picked from commit
02ce2ef628e5973f32dd1ff8c94b79ce00293c93
)
lib/Plack/App/Gruntmaster.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster.pm
b/lib/Plack/App/Gruntmaster.pm
index 1a0c7ab3946180379c607e6bcac81666df626f9e..f091892c75364acab62bec77a11defab31818a61 100644
(file)
--- a/
lib/Plack/App/Gruntmaster.pm
+++ b/
lib/Plack/App/Gruntmaster.pm
@@
-240,9
+240,10
@@
sub dispatch_request{
my $source = $prog ? read_file $prog->path : $_{source_code};
unlink $prog->path if $prog;
+ my $private = (problem->private && !$_{contest}) ? 1 : 0;
my $newjob = db->jobs->create({
maybe contest => $_{contest},
-
maybe private => problem->private && !$_{contest}
,
+
private => $private
,
date => time,
extension => FORMAT_EXTENSION->{$_{prog_format}},
format => $_{prog_format},
This page took
0.011485 seconds
and
4
git commands to generate.